473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

where does the & go LOL

ok this is the javascript

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  
  3.     var options = {
  4.         script:"test.php?json=true&limit=6&one="+document.getElementById('oneone').value,
  5.         //script:"test.php?json=true&limit=6&",
  6.         varname:"input", 
  7.         json:true,
  8.         shownoresults:false,
  9.         maxresults:6,
  10.         callback: function (obj) { document.getElementById('testid').value = obj.id; },
  11.  
  12.     };
  13.     var as_json = new bsn.AutoSuggest('testinput', options);
  14.  
  15. </script>
  16.  
ok now no with this code not commented out i get

Expand|Select|Wrap|Line Numbers
  1. script:"test.php?json=true&limit=6&one="+document.getElementById('oneone').value,
  2.  
i get the value of oneone in firebug test.php?json=true&limit=6&one=s_city

when i comment that out and put in
Expand|Select|Wrap|Line Numbers
  1. script:"test.php?json=true&limit=6&",
  2.  
i get test.php?json=true&limit=6& varname=input

what i am asking is i know (well i think)i need a & in the first little section of code so i keeps adding the var name to the url .

please help thanks
Nov 1 '09 #1
1 1366
gits
5,390 Expert Mod 4TB
what JavaScript framework do you use? it seems like a misuse of the api of a XMLHttpRequest ... I think the params should be added another way ...

kind regards
Nov 10 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Robert Zierhofer | last post by:
Hi all, I currently face a problem with htmlentities and german "umlaute". After moving my scripts to a new box (from Linux to FreeBSD) I had to see that htmlentities is not working anymore....
38
by: Red Dragon | last post by:
I am self study C student. I got stuck in the program below on quadratic equation and will be most grateful if someone could help me to unravel the mystery. Why does the computer refuse to execute...
17
by: orekinbck | last post by:
Hi There Say I want to check if object1.Property1 is equal to a value, but object1 could be null. At the moment I have code like this: if (object1 != null) { if (object1.Property ==...
1
by: Jake Barnes | last post by:
I've SiteMeter one one of my sites. It's keeping track of how many times people view my site. Unfortunately, when I try to open a page of my site using window.open(), SiteMeter hijacks the window...
9
by: lawrence k | last post by:
This is what is set by default in the php.ini that is on our server: arg_separator.input = ";&" I want the PHP on the server consider both: & &amp; to be parameter separators. How do I do...
3
by: divya | last post by:
Hi, I have a table tblbwday with 2 fields Name and Birthday.I have written this script for displaying evryday names of the people on that day. <% set objConn...
2
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
4
by: Jane T | last post by:
I appreciate how difficult it is to resolve a problem without all the information but maybe someone has come across a similar problem. I have an 'extract' table which has 1853 rows when I ask for...
3
by: james.kirin40 | last post by:
Hi everyone, I am using Python's re module to extract some data from html. The following code never returns, and I was wondering if someone can explain to me why. Is this a problem with my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.