• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Including the .js files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Including the .js files


  • Subject: Including the .js files
  • From: "Kranthi Sagar Borra" <email@hidden>
  • Date: Thu, 15 Jul 2004 01:18:52 +0530
  • Thread-topic: Including the .js files

Hi all,

My question is regarding the js files that I need to include in my component. I ahve done something like this.

<script src="<WEBOBJECT NAME=ResourceURL1></WEBOBJECT>"></script>

and defined

ResourceURL1: WOResourceURL {
	filename = "validate.js";
	framework = "app";
}

But now I have a hyperlink to the next page. On clicking this my page needs to be validate. So for cross browszer compatibility I did something like this

<li id="btnnext1" class="linkstyle_next1" onmouseover="this.className='hoverstyle_next1';" onmouseout="this.className='linkstyle_next1';"  onclick="checkWholeForm();">
						<WEBOBJECT NAME="Hyperlink12">Next Step</WEBOBJECT>

So on click of this "Next Step", javascript function,checkWholeForm that is defined in the .js file is executed which will check if the mandatory fileds are required.

1. But after validating the action method that is associated to the Hyperlink12 is getting executed, which I do not want to do.
2. Also to handle cross broser compatibility, I am providing all the steps in <li>, but is there any other way by which I can handle this. thank you.

Regards,
Kranthi Sagar.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: EOModeler question
  • Next by Date: Re: Problem with commit while deleting rows from table
  • Previous by thread: Re: EOModeler question
  • Next by thread: Re: Including the .js files
  • Index(es):
    • Date
    • Thread