iEntry 10th Anniversary 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 January 10th, 2008, 08:10 AM   #1
New Member
 

Join Date: Jan 2008
Location: Slovenia
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 niko79 is on a distinguished road
trigger onchange

Is it possible to trigger the onchange event programmatically? I'm changing the value of input with JS and onchange doesn't trigger.

Thanks!
niko79 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 January 10th, 2008, 08:35 AM   #2
Highly Reputable Member
SuperMember
 
Rakuli's Avatar
 

Join Date: Sep 2007
Location: Australia
Age: 25
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Rakuli is a splendid one to behold Rakuli is a splendid one to behold Rakuli is a splendid one to behold Rakuli is a splendid one to behold Rakuli is a splendid one to behold Rakuli is a splendid one to behold
Re: trigger onchange

You can do it by calling it as an object method..

eg:

Code:
var formInput = document.getElementById('input');

formInput.onchange();
__________________
Luke Dingle . com
Rakuli 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 January 10th, 2008, 09:46 AM   #3
New Member
 

Join Date: Jan 2008
Location: Slovenia
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 niko79 is on a distinguished road
Re: trigger onchange

Ok, I didn't mention that I'm using this event to fire a xajax function that updates some values on my form. The formInput.onchange() is called from another window and now I'm getting an error:

Error: responseReceived: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]

but only in FF, IE works great. Any hints?
niko79 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


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
Dynamic Select Menu with Onchange pimpmaster JavaScript 2 June 18th, 2007 03:11 PM
How do I trigger an action when one swf is swapped for another? Keeldog Flash and ActionScript 4 April 28th, 2007 03:22 AM
IE Active X trigger? Lchad HTML, XHTML and CSS 0 February 9th, 2007 08:52 AM
insert image trigger by variable value from a form kyk JavaScript 5 August 19th, 2006 06:15 AM
onchange event and tabbing out of text field ARRRGG juan110470 JavaScript 1 December 7th, 2005 07:55 PM


Search Engine Optimization by vBSEO 3.2.0 RC8