SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Escape "=" for AJAX call through URL?

    I'm trying to write some AJAX stuff with Scriptaculous and I'm stuck on what should be a simple setting of a variable. I'm probably doing something you aren't allowed to do or something. Here's all I'm trying to set:

    Code:
    path = 'showPrices.html?p='+basePrice;
    I get an "undefined" error. Basically I'm trying to pass a variable through AJAX to the file I'm calling through the URL.

    Any help would be greatly appreciated.

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That code is fine. Your undefined error can come from any number of places. Do you have some additional code you could post? It could be something as simple as basePrice vs baseprice vs Baseprice. Javascript is case sensitive.
    var me = null;


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •