ITCOOKBOOK.com

 Options

Current Time:
Thu Sep 09, 2010 10:44 am
View unanswered posts

Log in

Username:
Password:
Log me on automatically each visit

Topic Information

Double call

 
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> AJAX Programming
View previous topic :: View next topic  
Author Message
dadahead
Fresher


Joined: 30 Nov 2006
Posts: 5

PostPosted: Thu Nov 30, 2006 11:43 pm    Post subject: Double call Reply with quote

I have PHP checking for return Session values (there are 2 different AJAX elements on the page). If the first value exists, it calls the function and loads the data. If the second value exists, it calls the function and loads the data.

But if both the first and second values exist, it only loads the second ‘pulldown’ correctly.

I'm calling the function twice with 1 ‘onload’ call in the body that looks like this:

CODE

<body>

I'm assuming that the double call is causing problems as the data loads. It’s loading into the same variables and killing the first load.

What is the correct way to do this? It seems messy to duplicate the function and change variables like "req" to "req1" and "req2". I assume it makes 1 call and pull in all data as XML, and parse the nodes.

What is the "proper" method of handling this?
_________________
Who, me? Yeah - that's right OK!
DA DA HEAD!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> AJAX Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Help US Help YOU

 

 

Please complete our short survey and save $17.50 on ITCOOKBOOK.COM.

 

 

Take a look at SAPTrends.com, a new blog dedicated to discussion of SAP Training trends in SAP ERP.

 

 

C# Interview Questions

 

.NET Interview Questions

 

Java Interview Questions

 

Python Interview Questions

 

ColdFusion Interview Questions

 

Linux Interview Questions

 

Linux LPIC 1 Certification Questions

 

Perl Programming Interview Questions