aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript question" Watch "Javascript question" New topic
Author

Javascript question

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi Friends,

I have four drop down menus.
Hour1
Minute1
Hour2
Minute2

I attched listners to each of the dropdown menu.

Then I wrote a javascript :

This will totally returns 4 values,
I need to cancat Fromhour and Fromminute to make "Fromtime"
and TOhour and To minute to make "Totime"

After that I need to compare Fromtime and Totime to validate the timings.

My Question is: How do I do the cancat operation.
Thanks in Advance
[ June 09, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61193
    
  66



"listner", even if spelled correctly, is not a valid attribute of the <select> element. Is this really the code you are trying to use?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61193
    
  66

My Question is: How do I do the cancat operation.
Strings are concatenated with the + operator.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61193
    
  66

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

This whole forum is devoted to JavaScript questions so a title of "Javascript question" isn;t v ery helpful is it?

You can go back and change your post to add a more meaningful subject by clicking the .
Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
I tried to post with the exact code but I am unable to do it.

actually in place of listner I used onblur.
I know about the cancatanation process, but how to get the values that returned by the functions.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61193
    
  66

Originally posted by mark watson:
I tried to post with the exact code but I am unable to do it.
The FAQ has an entry that explains how to post code.

I know about the cancatanation process, but how to get the values that returned by the functions.
Regardless of how the values are obtained, the + operator would still be used.

For example:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript question