Opened 15 years ago

Closed 15 years ago

#1659 closed defect (invalid)

linkpane page using onclick javascript event

Reported by: [email protected] Owned by: mumme
Priority: high Milestone: 0.9
Component: Widgets Version: 0.3
Keywords: onChange Cc:
Blocked By: Blocking:


a Tab container is composed of 2 linkpane tabs. -> the first tab is loading file tab1.html -> the second tab is loading file tab2.html

tab1.html display the alert 'coucou from france' : it's working well <html> <body>

<a href="javascript:;" onclick="alert('coucou from france')>click to display alert</a>

</body> </html>

tab2.html display an error message 'line 0 missing object' : it doesn't work correctly <script type="text/javascript"> function display_alert() { alert('coucou from france'); } </script> <html> <body>

<a href="javascript:;" onclick="display_alert()')>click to display alert</a>

</body> </html>

Change History (2)

comment:1 Changed 15 years ago by bill

Component: EventsWidgets
Milestone: 0.5
Owner: changed from alex to mumme

not sure what's going on but Fredrik wrote the code for script handling in ContentPanes? so reassigning to him.

comment:2 Changed 15 years ago by mumme

Resolution: invalid
Status: newclosed

First of all executeScripts must be true for the contentPane that pulls in tab2.html in order to eval the scripttag in tab2.html.

Second if you dont want script scope separation between contentpanes, looks like you dont want that by reading your code, you need to set scriptSeparation=false (only in 0.4) on the same contentpane.

There is some (outdated) info in the book about scripts in a ContentPane?

/ Fredrik

Note: See TracTickets for help on using tickets.