I would probably use a multi-file RegularExpression replacement in
ColdFusion studio ... be very careful tho... and replace all the references
to document.form[0] with document.myformname and give form[0] the name it
needs... the regex I'm sure will only be necessary for adding the form name,
because you need to make sure you're only affecting the correct forms.

Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046

> Folks:

> I'm in a bit of a quandary here, and was hoping that some if the brilliant
> minds on this list could offer some insight.

> Problem:
> We have hundreds of pages that (unfortunately) refer to a form by
> document.form[0].  We are now attempting to add a form to the top of the
> page, thus making it the new document.form[0].  Rather than re-coding the
> existing pages to use document.formName (which should have been done in
> the
> first place) we need a solution that will allow a form that appears first
> on
> the page to be anything BUT document.form[0].

> Questions:
> Is there any way to "spoof" the DOM into thinking that the first form on
> the
> page is document.form[100]? (Can you override how the DOM indexes objects
> in
> a page?) Is there another way to work around this?

> ANY help would be greatly appreciated!

> Thanks,
> Christian N. Abad

> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to