Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > JavaScript and CSS

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-11-2006, 08:56 AM
jeroenp jeroenp is offline
Newbie
 
Join Date: Sep 2006
Posts: 1
Credits: 0
Rep Power: 0
jeroenp is on a distinguished road
Default http request before page submit

Hi all,

I'm quiete new to using ajax and I face one problem:

I have a form and I want to call a script when the submit-button is pressed. Therefore I added the onclick() function as onsubmit() didn't work. In the function I call, I want to do a get-request using the XMLHttpReques-object.

The problem is that 90pct of the time I press the submit-button there takes no XMLHttpReques place. When I add a delay after the request line, for instance just an alert-box, the request does take place?!

Does somebody know how to solve this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-01-2006, 06:08 PM
RobSoftware RobSoftware is offline
Programmer
 
Join Date: Nov 2005
Posts: 143
Credits: 0
Rep Power: 11
RobSoftware is on a distinguished road
Default

Could you post your code? I've noticed that a lot of times something will work in FireFox but no IE or vise versa. If you post your code I'll see if I can get it to work though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

Advanced Search
Display Modes

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
HTTP pipelining in Java cs02as1 Java Help 2 08-14-2007 01:20 PM
how to refresh a page? :-[yc]-: Java Help 2 05-30-2007 07:47 AM
Global variables (SERVER) Jaan PHP Tutorials 0 03-22-2007 09:43 PM
Regarding Request Object reachpradeep Java Help 0 03-03-2007 09:46 AM
Question: Link to parts of a page skilletsteve HTML Programming 3 08-29-2006 03:15 PM


All times are GMT -5. The time now is 01:57 AM.

Contest Stats

Xav ........ 1322.18
MeTh0Dz|Reb0rn ........ 1053.7
morefood2001 ........ 879.43
John ........ 877.37
marwex89 ........ 869.98
WingedPanther ........ 830.24
Brandon W ........ 735.07
chili5 ........ 309.39
Steve.L ........ 239.84
dcs ........ 216.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads