04-02-2009, 07:23 PM | #1 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I need Javascript help
I don't know anything about Javascript. I'm going to learn, but for now I need someone to help me. I can teach myself a fair amount from this one example after someone does it for me. Thank you.
This line from a form calls the function. I need the contents of the function moved inside the onChange statement. It must be moved there for this to work. <select name="CountrySelect" onChange="MM_jumpMenu('parent', this, 0)"> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } |
04-02-2009, 10:10 PM | #2 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Never mind. I need to start from scratch. Those MaM didn't bother to update their support information. It turns out that Mobipocket format does indeed support Javascript functions inside ebooks. The site says it doesn't. I've spent close to 3 hours on this.
|
Advert | |
|
04-03-2009, 07:15 AM | #3 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Note that Mobipocket's document object model is different from browser's DOM, so you can't just copy/paste code and expect it to work.
|
04-03-2009, 07:36 AM | #4 | |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
|
|
04-04-2009, 12:55 AM | #5 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I have it working:
https://www.mobileread.com/forums/sho...320#post411320 |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub et javascript | zelda_pinwheel | Software | 9 | 12-09-2010 04:56 PM |
JavaScript and interactivity in iBooks | kjk | Apple Devices | 2 | 08-16-2010 10:14 AM |
PRS-500 Tools for debugging javascript ...? | Clemenseken | Sony Reader Dev Corner | 6 | 05-03-2008 02:51 PM |
iLiad Javascript? | jsc | iRex Developer's Corner | 1 | 09-10-2006 07:17 AM |
Can this be done - remove javascript from a page | ScottMattes | Workshop | 1 | 05-17-2006 01:27 AM |