Html panel + button + onclick
HI Everybody!
I'm sorry for my language skill but I can't speak english very good but I hope you understand what am I want.
So I have a problem because so I would like to make a button with an onclick attr. like this:
<input type="button" onclick="categ.loadContent('example.html');" value="whatever">
but it is doesn't work ... I don't know why.. because the categ object is exist..
I got this error msg: "categ.loadContent is not a function" but if I replaced the button to an "a" tag like this:
<a href="javascript:categ.loadContent('example.html');">link</a> it is work
Please Help me!!! Thanks for everything!
Best regard's,
Matt
do you have a online url?
Similar Messages
-
Disable HTML Item Button Onclick
Apex 3.2
We are only using HTML buttons in one of our applications.
I use the following code, for example, on my page buttons (region buttons) to disable them after they have been clicked by the user
URL Target
javascript:this.disabled=true;this.value='Refreshing Page...';doSubmit('REFRESH');
Is there anyway to do this with a HTML item button, which we use for search and reset buttons.
Thanks in advance for your help
GusGus,
Give this a try. It is very similar to yours. It is used on an html button to guard against double clicking.
Put this in the URL Target. PROCESS is the name value of the button
javascript:this.disabled=true;doSubmit('PROCESS'); -
#Include or run script from HTML panel button?
I'v been trying to make a panel with the HTML widget and I keep running into issues. The buttons I made wont run the scripts. Is there a way to include js for PS inside the html to run when the button is pressed? <script></script> doesn't seem to work for things inside of PS. Or is there a way to run a script in PS from a button?
I guess I have multiple questions really. Do you always have to use _AdobeInvokeScript inside the button? I have seen some examples without it and I'm not sure what works and what doesn't.Thank you Paul!
%20 is just how space characters are encoded and doesn't matter
Ye, I know this,.. it`s was my just suggestion...
So. The solution in this string:
var scriptFile = File(File($.fileName).parent.parent.absoluteURI + "/Change Render Locations.jsx")
Everything else is identical, in my script and in your. Of course except alerts. I remove them, and now i have just my button which works fine....
And may be you can suggest, why does not work "my" method of running the script?
Thanks again! -
Hello,
I know this topic has been seen a lot, but I still can't find
the answer for me...
Well, it's easy, I use html panels to load content into my
website (I have a SPRYMenu wich loads content into the
"main" div)
But, when I load content including another HTML Panel, it
doesn't work...
I've set the evalscripts to true, but it doesn't work...
here is a small portion of code coming from the exaples, wich
looks like what i want to do, even if in this code, it loads a
slidingPanel, not a HTLMPanel, but I think if I can make it work,
I'll be able to do what I want then !
here is the main file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
hr, .clearAll {
clear: both;
.SlidingPanels {
width: 300px;
height: 300px;
.SlidingPanelsContent {
width: 300px;
height: 300px;
.p1 {
background-color: #CCCC66;
.p2 {
background-color: #FFFFCC;
.p3 {
background-color: #6699FF;
.p4 {
background-color: #99CCCC;
.p5 {
background-color: #FF99CC;
.p6 {
background-color: #339933;
.p7 {
background-color: #9933FF;
.p8 {
background-color: #669966;
.p9 {
background-color: #00FFCC;
#example2.SlidingPanels {
float: left;
#example2 .SlidingPanelsContentGroup {
float: left;
width: 10000px;
#example2 .SlidingPanelsContent {
float: left;
</style>
<script src="inc/SpryHTMLPanel.js"
language="javascript"
type="text/javascript">
Spry.Widget.HTMLPanel.evalScripts =
true;</script>
<link href="inc/SpryHTMLPanel.css"
rel="stylesheet"
type="text/css" />
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
</head>
<body>
<div id="panelSpry"
style="">text de base</div>
<div><a
href="essai1.html"
onclick="panelWidget.loadContent(this.href);return
false;">changement</a></div>
<script>
var panelWidget = new
Spry.Widget.HTMLPanel("panelSpry", { evalScripts:
true });
</script>
</body>
</html>
and here is the loaded file (essai1.html) :
<link
href="inc/SprySlidingPanels.css"
rel="stylesheet"
type="text/css" />
<script type="text/javascript"
src="inc/SprySlidingPanels.js"></script>
<p>
Navigate by index:
<a href="#"
onclick="sp2.showPanel(0); return
false;">1</a> |
<a href="#"
onclick="sp2.showPanel(1); return
false;">2</a> |
<a href="#"
onclick="sp2.showPanel(2); return
false;">3</a> |
<a href="#"
onclick="sp2.showPanel(3); return
false;">4</a> |
<a href="#"
onclick="sp2.showPanel(4); return
false;">5</a> |
<a href="#"
onclick="sp2.showPanel(5); return
false;">6</a> |
<a href="#"
onclick="sp2.showPanel(6); return
false;">7</a> |
<a href="#"
onclick="sp2.showPanel(7); return
false;">8</a> |
<a href="#"
onclick="sp2.showPanel(8); return
false;">9</a>
</p>
<p>
Navigate by id:
<a href="#"
onclick="sp2.showPanel('ex2_p1'); return
false;">p1</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p2'); return
false;">p2</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p3'); return
false;">p3</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p4'); return
false;">p4</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p5'); return
false;">p5</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p6'); return
false;">p6</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p7'); return
false;">p7</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p8'); return
false;">p8</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p9'); return
false;">p9</a>
</p>
<p>
Other navigation methods:
<a href="#"
onclick="sp2.showFirstPanel(); return
false;">First</a> |
<a href="#"
onclick="sp2.showPreviousPanel(); return
false;">Previous</a> |
<a href="#"
onclick="sp2.showNextPanel(); return
false;">Next</a> |
<a href="#"
onclick="sp2.showLastPanel(); return
false;">Last</a>
</p>
<p>&nbsp;</p>
<div id="example2"
class="SlidingPanels"
tabindex="0">
<div
class="SlidingPanelsContentGroup">
<div id="ex2_p1"
class="SlidingPanelsContent p1">Panel
1</div>
<div id="ex2_p2"
class="SlidingPanelsContent p2">Panel
2</div>
<div id="ex2_p3"
class="SlidingPanelsContent p3">Panel
3</div>
<div id="ex2_p4"
class="SlidingPanelsContent p4">Panel
4</div>
<div id="ex2_p5"
class="SlidingPanelsContent p5">Panel
5</div>
<div id="ex2_p6"
class="SlidingPanelsContent p6">Panel
6</div>
<div id="ex2_p7"
class="SlidingPanelsContent p7">Panel
7</div>
<div id="ex2_p8"
class="SlidingPanelsContent p8">Panel
8</div>
<div id="ex2_p9"
class="SlidingPanelsContent p9">Panel
9</div>
</div>
</div>
<script
type="text/javascript">
var sp2 = new Spry.Widget.SlidingPanels('example2');
</script>
I hope somebody can help....
Thanks !Thank you for your quick reply.
I still have a problem here.
Would you please see my 3 files for my problems.
Thank you very much for your time.
1. index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test for Spry HTML Panel</title>
<script src="../spry/SpryHTMLPanel.js" language="javascript" type="text/javascript"></script>
<link href="../spry/SpryHTMLPanel.css" rel="stylesheet" type="text/css">
</head>
<body>
<input type="button" value="Click Here to Load Document Level 2" onclick="body_content_area.loadContent('doc_level_2.php');" />
<div id="body_content_area" style="clear:both; width:100%;">
<!-- Put Content Here -->
<div class="HTMLPanelLoadingContent">Loading ...</div>
</div>
<script type="text/javascript" language="javascript1.2">
<!--
var body_content_area = new Spry.Widget.HTMLPanel("body_content_area");
//-->
</script>
</body>
</html>
2. doc_level_2.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="../spry/SpryHTMLPanel.js" language="javascript" type="text/javascript"></script>
<link href="../spry/SpryHTMLPanel.css" rel="stylesheet" type="text/css">
</head>
<body>
<H1>Here is a content of document level 2</h1>
<br /><br />
<input type="button" value="Click Here to Load Document Level 3" onclick="body_content_area_2.loadContent('doc_level_3.php');" />
<div id="body_content_area_2" style="float:left; width:100%;">
<!-- Put Content Here -->
<div class="HTMLPanelLoadingContent">Loading ...</div>
</div>
<script type="text/javascript" language="javascript1.2">
<!--
var body_content_area_2 = new Spry.Widget.HTMLPanel("body_content_area_2");
//-->
</script>
</body>
</html>
3. doc_level_3.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<div style="float:left;">
<h2>Here is the content of document level 3</h2>
</div>
</body>
</html> -
No Script are working in SPRY HTML panel
I'm getting trouble with this website :
http://dubezy-faure.com.linkfirst-preprod.linkeo.org/
I've have 2 HTML fragments with lightbox and a spry contact
form in them but no one is working. When I bypassed the HTML panel,
my scripts work fine.
I've use the evalScripts:true but still nothing.
Below is the code :
<div id="menuhaut">
<ul>
<li><a href="index1.htm"
onclick="hpanel.loadContent(this.href); return
false;">Accueil</a></li>
<li><a href="real1.htm"
onclick="hpanel.loadContent(this.href); return
false;">Réalisations</a></li>
<li><a href="contact1.htm"
onclick="hpanel.loadContent(this.href); return
false;">Contact</a></li>
</ul>
</div>
<script language="JavaScript" type="text/javascript">
var hpanel = new
Spry.Widget.HTMLPanel("main",{evalScripts:true});
</script>
I've added the scripts in the HTML fragments as followed :
FOR LIGHTBOX
<link href="css/lx.css" rel="stylesheet" type="text/css"
/>
<script type="text/JavaScript"
src="script/lx.js"></script>
FOR the SPRY VALIDATION SCRIPT
<link href="css/validate.css" rel="stylesheet"
type="text/css" />
<script type="text/JavaScript"
src="script/validate.js"></script>
Could someone help me...Thanks Diana !
My contact form is now working fine, but what about the
lightbox for the page Realisation? It has a lightbox effect on
clicking an image inside the HTML fragment. This lightbox do not
work. No error message is reported in firebug. I find this odd.
The lightbox effect works fine for the button plan, because
it's found outside the HTML fragment. Anything in the HTML panel
fails.
Thanks in advance for the support -
Controlling a Spry HTML panel with a Jump Menu
Hi, I wonder if anyone can help.
I've implemented a HTML panel within a page to display different page elements and have it working no problem with a simple href and an onClick event but I would like to control what is displayed by using a jump menu (drop down list) - any idea how I can control that to populate the necessary DIV?
eg: <select name="site" size=1 onChange="hpanel.loadContent(this.href); return false;"> (obviously this doesn't work!)
Thanks in advance
NeilIt works fine, but your pages arent found;
http://www.thedesignforge.co.uk/clients/elsevier/laure/v2/dollar_rates.html
See its missing.
But
http://www.thedesignforge.co.uk/clients/elsevier/laure/v2/dollar_rate.html
Exists. So it seems to me you are linking to a incorrect file. -
Return focus from html panel?
Hey everyone,
can you please tell me if there's a way to return focus from the html panel back to Photoshop? I've tried app.activate() but no luck
Many thanks!Hi,
let's take this
sample.
On the main file: html_panel_sample.html go and change the
first panel to support java script code adding the preventScript
option on false: var mine = new Spry.Widget.HTMLPanel("me",
{preventScripts:false});
On the file that is loaded, frag-0.html make a link to load a
new panel like this:
<a href="#"
onclick="mine.loadContent('frag-1.html');return false;">load
frag-1.html file</a>
Please let us know if you have other questions,
Diana -
I've completed and tested an HTML panel that I built. Everything is good to go EXCEPT that on Mac I'm experiencing some strange behavior. Every once in awhile my extension will glitch a bit (the fonts and buttons resize for a split second). After this I'm no longer able to use pulldowns and some variables aren't updating. I'm using localStrorage and thought that might be the problem but window.localStorage.clear() doesn't solve the problem. The only solution is to create a new folder, dump all my folders and script into that. Then I have to create a new index.html and overwrite the content. Everything is fixed....for a while. The panel uses Node and some node_modules as well as jQuery and CSS.
Looking over my manifest it looks like I changed <RequiredRuntime Name="CSXS" Version="4.0" /> to <RequiredRuntime Name="CSXS" Version="5.0" />. The error didn't cause problems at first but eventually popped up. Hopefully this means everything is OK now.
-
HTML Panel with Tabs like Sliding Panel tabs
Hi, what do I need to add/change to have HTML panels
switching with tabs that switches background image like the tabs in
sliding panels example?
Or can I modify the
sp_withTabs.js to have graphic tabs work with HTML
Panels?Nevermind, I got it. I used the SpryTabbedPanels.js and
modified the SpryTabbedPanels.css with my graphics, size, position
and what not.
I do have one more question. I'm using HTML Panels with Fade
in and out and when loading my page I have to have default content
in the main html doc for something to display when the page loads.
Then when I click on the first button, it then loads the real
external HTML panels. Is there any way I can load my first external
HTML page right when my site loads? -
Example of localize tooltip for HTML panel
Hi,
is someone know where I can find examples of localized tooltip for HTML panel.
It 's easy for a button or a link. But I don't know how to do it with tooltips.
Many thanks.
SebastienThe Spry site version is fixed (plus another quote error I
found while i was at it..).
The LiveDoc version will take a bit longer to get the fix
live.
Thanks,
Don -
Calling a method with a html Submit button
hi guys,
is it possible to call a method from a JSP file using a HTML submit button. I know i can call another website easily doing it this way, is there a similar way available to call a method once the button is clicked?
FYI
The method is in a bean file named jdbc. The methods name is getUsername.
Nice one.
<form action = <%jdbc.getUsername()%> <input type="submit" value="Submit">Dear friend,
you mentioned that u need to call a method when submit button is clicked. Is the method dynamically created. If not so, then you can include the method on the submit button html file itself.
Regards,
Rengaraj.R -
Images not loading in Spry HTML Panel
Hallo everyone
I am using links to load html fragments in a Spry HTML Panel, just like in the example page
http://labs.adobe.com/technologies/spry/widgets/htmlpanel/SpryHTMLPanel.html
The whole structure is inside a Spry Tabbed Panel.
All works ok if the target html pages are in the same directory as the mother page.
Images are standard in the "images" folder
The problem starts when I try to organise all the html fragments in a separate directory.
Updating links in all the html files is of course done correctly, images included.
Then the problem starts.
The html fragments load but with no images.
When I open the html fragments directly by the browser all is ok.
Any ideas would be appreciated
Thanks!Can you upload your pages to a server and give us a link?
If your images are in your site folder (no matter which directory), but they are not showing up in your fragments, it is likely that the paths are wrong. The images (it seems to me) should exist on the fragment and be linked from there.
I won't have a chance to fiddle around with this right now, but if your images are linked to the fragment locations and that does NOT work, try linking them as if they were on the page that is showing the fragments. I'm not familiar (yet) with this widget.
Beth -
Multimedia touch panel buttons on Satellite A500 are not all working
Hello,
I recently purchased an A500 (PSAR9A-02J001) laptop running Windows 7 (32-bit) Home Premium. Not all the top Multimedia touch panel buttons are working. When buttons are pressed, the laptop makes a beeping sound (which is normal) but the corresponding function is not executed.
For example, the Eco button at the top doesn't switch on/off the eco and the mute button does not mute the volume.
Device manager shows all devices as working correctly.
There are no errors in the Event Viewer Application or System logs.
Please advise!
Thank you,Hello
Try please to reinstall Toshiba value added package.
Remove preinstalled version, restart your notebook and install latest version from Toshiba download page. -
Change default setting for edit panel button.
In Elements 10 the default setting for the Edit panel button is expanded. I had it contracted which put it in the panel bin. That gave me a narrower panel bin and more editor workspace. After resetting the panels I am having trouble figuring out how to contract it back like it was. Does anyone know how to do this or have any ideas?
It seems that not having the (Full, Quick, and Guided) buttons in an (Edit panel) makes the panel bin wider. I had a narrow bin like in photodrawken's picture at one time. I can change the size of a panel by grabbing the line at the edge. But not the bin width. Was it a fluke that I had a Edit panel?
-
Automatic Pause (through program) and Manual Resume through front panel Button
Hi, I am trying to implement a system which measures voltage and current for a varying source voltage at varying temperature. The program acquires 5 pairs of voltage and current data. The issue here is that the source voltage is varied by manually changing the value of the variable resistor. What I would like to do is somehow pause the program automatically once the loop (for acquiring 5 V and I data pairs) has completed. Then, after the user manually changes the value of the variable resistor (and enters the new value through a front panel indicator), the user should be able to resume the program through a front panel button like in this example: https://decibel.ni.com/content/docs/DOC-10792
Is it possible to implement this in LabView?
In summary: I would like to implement a system in which the program would pause automatically after a condition has been fulfilled, and can be resumed through a front panel button.
Thank you in advance for any help and suggestions. I hope I made my query clear. I'm not sure whether attaching the program would help but I included it just in case
Solved!
Go to Solution.
Attachments:
Resistivity Measurement.vi 132 KBHi all! I've overhauled my program after learning how to create state machines in LabVIEW. I think I've managed to make it able to pause program execution by staying in the Initialize state if Pause After Measurement is set to True, only resuming measurement once the user has pressed the front panel button to Acquire Data. Attached is the code for the program.
Thanks to you all for leading me to the right direction (I hope)
I have other questions though for some other functions I want to implement in the program (which are not very relevant to the original topic title). Would it be better to start a new topic or continue the discussion here?
Attachments:
Resistivity Measurement v2.vi 159 KB
Maybe you are looking for
-
Oracle Error from inserting a table from a table
Hi all, We got a oracle error, as following, Thu Mar 2 16:34:03 2006 Errors in file /oracle1/app/oracle/admin/M3US/udump/ora_1773234_m3us.trc: ORA-00600: internal error code, arguments: [4518], [], [], [], [], [], [], [] The SQL is below, INSERT INTO
-
HI GURUS, CAN ANY1 TELL ME WHAT IS THE BASIS FOR CALCULATING ADDITIONAL EXCISE DUTIES IN IMPORT SCENARIOS? IS IT THAT ALL DUTIES ARE NEEDED TO BE TAKEN TO calculate addl excise duty? Please explain with example
-
Best way to allow user to change text and image
Hi, A friend wants to change his product images and pricing etc., on his static web pages. At the moment each product is within a cell in a table and the cell below is where the text for details and pricing is. This is the only area he will need to b
-
Application Start Fails with java.lang.NumberFormatException: null
Hi All, I am new to Weblogic. I am facing issue in starting application in weblogic. I have weblogic 11g(10.3.1.0) installed on windows. After deploying my application, when I am starting the application by selecting "Servicing All Requests" I get er
-
What will happen if I delete my husband's iCloud account from my iPad?
What will happen if I delete my husband's iCloud account from my iPad?