• 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
Re: Including the .js files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including the .js files


  • Subject: Re: Including the .js files
  • From: Jerry Porter <email@hidden>
  • Date: Thu, 15 Jul 2004 09:09:19 -0600

How about using WOJavaScript?
see http://developer.apple.com/documentation/WebObjects/Reference/ DynamicElements/index.html


On Jul 14, 2004, at 1:48 PM, Kranthi Sagar Borra wrote:

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.


Jerry E. Porter
Software Engineer
Wireless Matrix Corporation
102, 1530 - 27th Ave. NE
Calgary, Alberta, Canada
T2E 7S6
Main: 1-403-250-3949
Fax: 1-403-250-8163
email@hidden
http://www.wirelessmatrixcorp.com
_______________________________________________
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.


References: 
 >Including the .js files (From: "Kranthi Sagar Borra" <email@hidden>)

  • Prev by Date: Re: Automated/load testing for WO apps
  • Next by Date: cannot access HTTPClient.HTTPConnection
  • Previous by thread: Including the .js files
  • Next by thread: Re: Including the .js files
  • Index(es):
    • Date
    • Thread