Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old August 22nd, 2007, 07:19 AM   #1
New Member
 

Join Date: Apr 2007
Location: uk
Age: 22
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 magnetica is on a distinguished road
Query Strings and concat

Code:
 
onclick="getData('test.php','targetDiv')
This is a simple piece of ajax that goes to the server and retrieves whatever's in test.php.

How do i pass a querystring to test.php, i have tried

Code:
onclick="getData('test.php?qs=' + querystring,'targetDiv')

Please note that it will work if i do this this:
Code:
onclick="getData('test.php?qs=hello','targetDiv')
But i want to get the value of a field.


But it doesn't work, how would i concat a query string into this

Last edited by magnetica; August 22nd, 2007 at 07:21 AM..
magnetica is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 22nd, 2007, 10:22 AM   #2
WebForumz Member
 

Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Kropotkin is on a distinguished road
Re: Query Strings and concat

Hi Magnetica

Your code looks fine to me. What is in querystring when you append it?

Justin
Kropotkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
concat


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Bar CONCAT query meth8200 Databases 2 May 13th, 2008 07:00 PM
cutting strings alexgeek PHP 5 August 29th, 2007 02:12 PM
Javascript Strings Help Sabin_33 JavaScript 2 December 21st, 2006 06:54 AM
Confused with strings... ktsirig Other Languages 1 January 11th, 2006 03:02 PM
Quotes in strings jakyra Classic ASP 5 September 9th, 2003 12:10 PM


Search Engine Optimization by vBSEO 3.2.0 RC8