Captivate 5: problems with Scripts Java - try to jump to a certain slides on different projects
I have the code here I did searches for Captivate 5 access certain slide in a different project, this code has attempted to use in projects separately and simultaneously:
function GetSlideParam() {}
If (Window.Location.href.IndexOf('?) Slide =')! = -1) {}
startIndex var = window.location.href.indexOf ('? = slide') + 7;
var URL = window.location.href.toString ();
var slideNumber = URL.substring (startIndex);
If (slideNumber! = "| slideNumber! = undefined) {}
setTimeout (function () {NavigateToSlide (slideNumber)}; 200);
}
}
}
function NavigateToSlide (requestedSlide) {}
cpObj = document var. Captivate;
cpObj.cpEISetValue ('cpCmndGotoSlide', requestedSlide - 1);
cpObj.cpEISetValue('rdcmndResume',1);
}
GetSlideParam();
Here is my file of URL success on in the properties of the button that was required to access some slides according to my research:
(my project to move to) .htm? slide = 2
Ultimately, he did not and just jump to slide 1 on the other project, no matter what I tried to do it or how I modified the script and properties button and drag the project... Help, please... Just thought that maybe you guys would know some scripts, it's why I ask you guys that no matter whether it's a Captivate because specialists Captivate couldn't answer my question being clueless on the script of this part.
There is no 'secret code '. All is in your NavigateToSlide service management, and apply some logic. (The Javascript logic, to be precise.)
The class variable is of type "string" , and I am 100% sure of this because you use the function 'substring' to create his argument. I know that because "substring" will always return a string, even when you give him a Boolean or integer (in these cases, it will return an empty string, but it is always a string - a little as the number 0 may represent "nothing at all", but it is always a number).
Look in the NaviatgeToSLide function. What happens when you subtract 1 from one channel? ... UH. It depends on the language, really. Most of the languages report it as an error, but Javascript does not work (for a variety of reasons - if this bothers you, use Google to find out why).
Now, assuming that the variable 'requestedSlide' contains a valid slide number and it is stored as a string, how you converting cela a real number? Using a pretty basic Javascript function, in fact:
cpObj.cpEISetValue('cpCmndGotoSlide',parseInt(requestedSlide) - 1);
Needless to say that I'm not 100% sure that this will fix the problem, because I can not test your code using InDesign.
Tags: InDesign
Similar Questions
-
reset the link
while trying to use re set link sent in your email, response comes back "temporary problem with this service, try again later" it has been like this for more than 1 month since early December! Help!Hello
· What service provider or of the e-mail client that you are using?
· What version of Internet Explorer you are using?
· What operating system is installed on your computer?
· It happens with all webmail or with any what particular webmail?
I suggest you to follow the link and check if it helps:
The problems of access to webmail using Internet Explorer
http://support.Microsoft.com/kb/2483955
Post back with detailed information on the issue so that we can help you further.
-
My problem with the Java Applets
Hi all
I have a problem with these java applets. When I go to this link and want to see the java applet running from this site, as I face n ° 1 error below I press OK, and then I get the error no. 2.
I disabled my AV (KIS 2013) and the Windows Firewall, but I still don't see the applet.
Is it possible to fix this problem please?n ° 1:
n ° 2:
a brief search for shows "application blocked by security settings" that you might need to change the security level in the java console.
-
Problem with script on the master page
So I have my build script of the unique number bit that I have posted here before... it's on the Initialize event of the field.
If (this.rawValue == null) {}
var d = new Date();
this.rawValue = parseInt(d / 1000);
}
else {}
this.rawValue = rawValue;
}Which works very well if on the body of the form, but if I put it on the master page it re - initializes (and changes the number) whenever a subform gets shown/hidden. No idea how to stop it from doing this? I tried it on a few other events without a bit of luck.
I came across another problem with this script, a field called 'Date' was interfering with the script - throw an error "the Date is not a constructor. Is - this normal (function/field collision)?
Hi Jono,
I had problems with script within the Master pages before. What I've done in the past, it is a textfield hidden in the main pages of script with overall binding (which featured many here today); then same name textfield in the master page picks it up.
Good luck
N.
Post edited by: Niall O'Donovan
-
I am new to use the forums. How to start a discussion? The ICO next which is grayed out.
I have a problem with corruption. How can I change the timeline on an existing project. Each image is moved about 2.5 min.; My preferences are for 180 frames. It does not seem to consider one after the fact. Is it possible to copy the whole thing and put it in a new, m not corrupted project?
Hello and welcome.
I feel for you after reading your story, however, it that are supposed to do? It is a forum for Dreamweaver and to my knowledge, Dreamweaver has no functionality called the chronology.
Could you please explain the problem so that we can understand?
-
Hello!
I installed Win Live Movie Maker, but when I tried to open my .mswmm file I only got this message: "sorry, Move Maker cannot open this project file. The file is not compatible with Windows Live Movie Maker or damaged. Please select a different project file. "The file will open correctly in Windows Live Movie Maker 7, so everything should be OK. What I am doing wrong?Hello
This is supported in Windows Live movie maker file type.
For any request or problems related to Windows Live Movie maker, please post to the Windows Live Help forum.
Here is the link: http://www.windowslivehelp.com/product.aspx?productid=5
Diana
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
Support for Arabic characters - problem with the .java resource group
Hi all
I have a requirement to internationalize the web application from merger and support Arab characters
I have a file of properties in the project view controller and a .java resource group in the model project.
I followed the steps mentioned in the documentation
Regardless of the text defined in the .properties file works fine, the problem is with the .java resource group. The characters defined in the java file is
shown on the Web page, as follows.
O´UŠO³O¨ O´UŠO´O¨O´UŠ
What could be the reason. Can someone help me on this?
Jdev version 11.1.2.0.0And you can also try like this,
My locale in backing bean file is like this
Locale bean
public class LocaleBean {}
language of the public channel = 'en ';
/**
* @return
*/{} public void changeLocale (language: String)
System.out.println ("changeLocale" + language);
This.Language = language;
this.setLanguage (language);
Locale newLocale = new local (this.language);
FacesContext context = FacesContext.getCurrentInstance ();
context.getViewRoot () .setLocale (newLocale);
JSFUtils.storeOnSession ('LOCAL', language);
System.out.println ("end of change of locale");
}{} public void setLanguage (language: String)
This.Language = language;
}public String getLanguage() {}
return language;
}{} public void changeLocaleAction (ActionEvent actionEvent)
changeLocale (this.language);
Add the code in the event here...
}
}Faces - config.Xml
Oracle.ADF.Rich
Resorces.XX
message
en
AR
en
localeBean
LocaleBean
request
and my package of resource like this:
xx_ar_AR. Properties
XX. PropertiesAnd the project properties > compiler property > character encoding > UTF-8
&
Select Tools--> Preferences--> environment
and then set the UTF-8 encoding.no need to change your Trinity - config.Xml
Concerning
PY -
Problem with Script using New() to create a #Vectorshape
Hello
I'm having a problem with a movie in a movie script, I build and I can't understand why.
The unique film script, developed by JC in 2004, is reproduced below. It works perfectly in a film in itself. But I need to integrate it into a sequence exists in which the other sprites and behaviour must co-exist.
The problem I see is that George is created with the new command (can be seen in the message using window put George), but it won't allow attachment of gMem.regPoint, gMem.centerRegPointand so on. These errors any return.
I would also be open to another solution to the problem. What I have to do is to create rectangles which represent a plan view of a roof on an underlying grid and then be able to slide and place other images on it (it's not a game for training purposes).
I use MX2004 on a PC. Any help, greatly appreciated.
Rod Wolford
------------------------------------------------------------------------------------------ --
George overall, gCount, gNum, gLoc, gCreateVert, gMemNum
on prepareMovie
clearGlobals()
_movie.puppetTempo (60)
gCreateVert = False
gMemNum = 5
endon mouseDown
If not (gCreateVert) then
George = new (#vectorShape, Member gMemNum of castLib 1)
gMemNum = gMemNum + 1
gMem.regPoint = point (0,0)
gMem.centerRegPoint = False
gMem.closed = False
gMem.antialias = True
gMem.strokeWidth = 0.25
gMem.strokeColor = rgb (0,0,0)
gNum = getFreeChannel()
channel (gNum) .makeScriptedSprite (George, point (0,0))
Sprite (gNum) .encre = 36
gCount = 0
gCreateVert = True
end if
If gCreateVert then
If the doubleClick may
gCreateVert = False
gCount = gCount - 1
gMem.deleteVertex (gCount)
gMem.closed = True
gMem.fillMode = #solid
gMem.fillColor = rgb (random (256) - 1, random (256) - 1, random (256) - 1)
gFinished = True
output
end if
gCount = gCount + 1
gMem.addVertex (gCount, the mouseLoc)
gCount = gCount + 1
gMem.addVertex (gCount, the mouseLoc)
gLoc = the mouseLoc
end if
endon enterFrame
If gCreateVert then
gMem.moveVertex (gCount, the mouseH - gLoc [1], the mouseV - gLoc [2])
theLoc = (gMem.vertexList) [gCount] [1]
If not (theLoc = the mouseLoc) then
gMem.moveVertex (gCount, the mouseH - theLoc [1], the mouseV - theLoc [2])
end if
gLoc = the mouseLoc
end if
endon stopMovie
theCount = castLib (1).member.count
Repeat with i = 1 to theCount
If the Member (i) game = #vectorShape then member (i) .erase)
end repeat
endon getFreeChannel
Repeat with i = 1 to the lastChannel
If sprite (i).member.type = #empty then
aNum = i
output of repetition
end if
end repeat
return aNum
endWhile I have not read any of your script, try to replace
George = new (#vectorShape, Member gMemNum of castLib 1)
with
George = _movie.newMember (#vectorShape, Member gMemNum of castLib 1)
It is possible that the film you want to integrate that into a script #movie with a #new Manager, who must have been typed as a script #parent
-
Problem with "Scripts" to convert the NEF to JPG
Hello
I'm trying to batch naves convert to jpg using file > Scripts > processor of images, what I did before, but when I click on select file to select files NAVE of the memory card, Photoshop does not recognize the NEF files.
Photoshop is grateful the NEF files in the case opposite and if I click on "Save as" and save it as a JPG file, it works, but it's a lot of work to save more than 500 images...
Any suggestions?
Thank you!
There are also some problems with photo, download maps of the camera. I would like to move the files to your computer to convert their use you BONES to move them.
-
Problem with script downloading
Hello
I have a problem with the download of the Flash Player on my XP computer Internet Explorer.
All the time I get the message indicating that a problem has occurred with the script on this page. I tried several times and at the end of the download procedure, this happens all the time. I activated the script and it worked for all the years up to now. Here you can see the message I get (in Swedish):
Is there someone who can give me an advice on how to get Flash Player?
Hello
Welcome to the Adobe Forums.
You can download the links on this document, offline Installer Adobe Flash Player:
http://helpx.Adobe.com/Flash-Player/KB/installation-problems-Flash-Player-Windows.html
Thank you
Vikram
-
BlackBerry Bond serious problems with the GPS on BB jump with OS 10.3.1
Hello
I have 3 problems with my BB jump; for 1 of it, I write here a solution.
When I get on the maps of BB (installed by default) with location and a Wi - Fi enabled connection, my position still show that I'm somewhere in Basel (Switzerland), even though I live in other countries European. I tried the settings, and I can't find anywhere any preset location. Is it not strange that the GPS is not able to find my REAL position? Please let me know what I can do to be legitimate spotted.
the other secondary issues which I hope will be resolved with upgrades:
1. the sound of the keyboard cannot be completely reduced, even if the sound is at a minimum.
2. the sound of the camera has no parameters to kill noise when shooting.
Thank you.
citizen_ka wrote:
It is true that I didn't try the device under the sky :).
Well, there you go. Go outside with a view of the sky, no buildings.
What part of the world, what country are you?
citizen_ka wrote:
the volume is set to minimum maximum and still makes audible clicks when entering.
Minimum only.
-
Problem with HTML; Java script error occurred.
Hello
I was wondering if someone could help me put code in InDesign, I get an "encountered Javascript error". I tried two versions, old and new from google maps. It does not seem to make a difference.
" < iframe src =" https://www.google.com/maps/embed?pb=! 1m18!1m12!1m3!1d3385.2463441033283!2d115.85631100000 002!3d-31.954213000000003!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2a32bad5b744 7749% 3A0xe5fe8e1ce7fcb54e! 1% 2F140 2s + St + George + terrace! 5e0! 3 m 2! 1sen! 2sau! 4v1396304372112 "width ="800"height ="380"frameborder ="0"style =" border: 0 "> < / iframe > "
Appreciated
Moved to DPS because that's the only possible reason to use it.
Yes, it's a known issue. My personal solution is to use Bing Maps.
-
Problems with the Java Extensions and new SDK 1.5
Hello
I had built a Java Extension with version 1.0 update modifing WidgetConfigImpl.java as PDF attached. And I was running properly.
Now, with the 1.5 SDK don't work and Java not return a warning or an error.
I have tried otherwise, generating a .jar and include it in the file ext with eclipse, but do not show the .jar in Add dialog, this same problem occurred at 1.0 and I solved adding that the Java plug-in with the attached PDF file.
Y at - it new path by adding the extension modifing WidgetConfigImpl.java or something similar?
Why anti-pop immediately following pushScreen in your code? I don't even know what that would do, but there is a good chance that it will never show your screen.
This does not work for the screen display? Generally speaking, you would record your screen as a listener for an event and close the form this way, right?
UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { try { UiApplication.getUiApplication().pushScreen(_screen); } catch (MediaException e) { Dialog.alert("Error: " + e.getMessage()); } }});
-
Problem with script OnConnect Portal WEBVPN AnyConnect
I have a minor problem
customer is 2.5.0217
OnConnect script works great by the client anyconnect however if I use the web front-end ssl to launch the client anyconnect onconnect script does not run. Is it possible to have onconnect and ondisconnect scripts to run if the anyconnect client is launched as part of the webvpn.
I searched high and low, but without success. Help or ideas would be greatly appreciated.
Thank you
Hello
According to my understanding of the issue, I see that the script does not run when Anyconnect is launched using the portal.
It may be related to a difficulty finding profiles sometimes.
This is usually the result of not having a hostname and hostaddress configured in the existing profile. I think it is perhaps a good idea to add
these values to your existing profile so we land on the right xml profile the first time.
Try to add the host entry as with fqdn of ASA.
And let me know if it helps.
For clearing up the credentials in the dialog box when using AnyConnect I found one of the bug:-
Symptom:
User credentials are cached in the preferences.xml file when you use the Anyconnect client. So when they revive Anyconnect, the user name is displayed in the client.
Conditions:
You can see all the client anyconnect. It is a configurable option in the IPSec client.
Workaround solution:
Currently there is no work around
And I can see it resolved in 2.4.202 however, I'm not sure if its fixed in 2.5 also. For this I would like to hear from others.
Kind regards
Shilpa
-
the cell's overflow to find table - problem with script
Hello
as a translation company, we often do some DTP on Framemaker documents. Documents often contain many tables and the translated text will always enters the cells, giving overflow. I'm looking by creating a script that detects the overflow in the table cells.
I already tested a few scripts and met today with a problem that I can't find. I started detecting overflow from the cells in a selected table, that works very well and gives an alert when an overflow is detected. This script:
// == WORKS ON SELECTED TABLE == var doc = app.ActiveDoc; var tbl = doc.SelectedTbl; var row = tbl.FirstRowInTbl; var cell; while (row.ObjectValid () === 1) { cell = row.FirstCellInRow; while (cell.ObjectValid () === 1) { if (cell.Overflowed === 1) { alert("cell overflow Will Robinson!"); } cell = cell.NextCellInRow; } row = row.NextRowInTbl; } // == END OF WORKS ON SELECTED TABLE ==
However, I thought it would be nice to browse tables in a document and find all the cells of overflows, instead of going to table by table. If this script runs successfully in tables, lines and cells in a document:
// === LOOPS THROUGH TABLE, NO OVERFLOW === var doc = app.ActiveDoc; var tbl = app.ActiveDoc.FirstTblInDoc; var row = tbl.FirstRowInTbl; var cell; while (tbl.ObjectValid()) { alert ("gimme a table"); while (row.ObjectValid () === 1) { cell = row.FirstCellInRow; while (cell.ObjectValid () === 1) { alert("gimme a cell"); cell = cell.NextCellInRow; } row = row.NextRowInTbl; } tbl = tbl.NextTblInDoc; } // === END OF LOOPS THROUGH TABLE, NO OVERFLOW ===
When I add the block
while (cell.ObjectValid () === 1) { if (cell.Overflowed === 1) { alert("cell overflow Will Robinson!");
in this script, it does not work. According to the cell. Overwhelmed A requires the table to be selected? Does anyone know how to get around this problem - by selecting the table if the object is valid before performing a loop on the lines, or by the detection cell. A swamped in the above script?
I also - why not :) - I tried overflow under the doc.flow rather than FirstTbl, but although it detects flowes/frameworks and subcol correctly, it is not always register the overflow.
var doc = app.ActiveDoc var flow = doc.FirstFlowInDoc var frame = flow.FirstTextFrameInFlow var subcol =frame.FirstSubCol while (flow.ObjectValid()){ while (frame.ObjectValid()) { while (subcol.ObjectValid()){ if (subcol.OverFlowed === 1){ alert("colsies"); //doesn't work! } subcol = subcol.NextSubCol } frame = frame.NextTextFrameInFlow } flow = flow.NextFlowInDoc }
I'm clearly missing something, but I can't know what? Any help would be greatly appreciated...
Kind regards
Geert
Your code in the second script isn't quite right. Try this:
var doc, tbl, row, cell; doc = app.ActiveDoc; tbl = doc.FirstTblInDoc; while (tbl.ObjectValid ()) { row = tbl.FirstRowInTbl; while (row.ObjectValid ()) { cell = row.FirstCellInRow; while (cell.ObjectValid ()) { if (cell.Overflowed === 1) { alert ("Cell overflowed"); } cell = cell.NextCellInRow; } row = row.NextRowInTbl; } tbl = tbl.NextTblInDoc; }
Maybe you are looking for
-
How can I add a photo to identify a contact in the Message
How can I add a photo to identify a contact in the Message
-
Addon shows the name but no icon in the window customize
I recently developed an add-on. However, once installed the icon does not show, but only the name of the addon in the window customize bar addon (or menu Australis).I have not seen this behavior in other addons, so I think it's probably something tha
-
Fingerprint reader can be attached on my T400?
Hello world Before I bought my T400 (without a fingerprint reader), I tried one but I forgot it. Once, I opened my laptop and I thought that I can ask for the part which includes the fingerprint reader and throw my existing touchpad... Is someone can
-
I m not get continuous readings of my camera
The President complied, I m MA to do my Masters in Karnatak University Dharwad, currently I am working on interfacing with devices using the version of Labview 5.1. In this, I created VI for Micro ohmmeter my Motwane that I m help for interface as we
-
CD ROM tray remains open, will not close
CD Rom tray will not close. When I restart the PC the tray closes but opens again and stays that way.