Can I pass variables in the URL string?
I am trying to get some variables into a loaded swf at
runtime. The variables will carry information so the swf can load
the correct xml file. I thought we could pass them through the URL
string like so:
new URLRequest("testing.swf?myVar=varOne
but it just throws an URL cannot be found error. How can I
get variables into my swf at runtime?
What you are doing is fine. But you will always get that
error when testing
the movie (Ctrl+Enter). Try it in a browser and it should
work.
BTW, another way of doing the same is to use a URLVariables
object, like so:
var req:URLRequest = new URLRequest("testing.swf");
var vars:URLVariables = new
URLVariables("myVar=varOne&myVar2=varTwo");
req.data = vars;
Similar Messages
-
Passing variables through the URL String
I have a template and outside the basic html - all the content is grabbed from a db. I want to use 1 template to generate all of the other pages for the site. So basically, the only way to identify the page would be through the URL string.
So, something like -
www.mysite.com/template.jsp?page_section=aboutus&pageID=1
That string would query the database and output the content for page 1 of the about section.
Does this make sense and where would I start to learn how this is done?.
Again, I appreciate your help.
Marksince database connections are costly affair i better use
jsp include tag ratter then getting dadta from database
assumming that u can devide your comman pages in 4 parts
just assume
top - logo
bottom - common links
center - data
left - menu
my jsp page would look like this (aboutus.jsp)
<%@ include file="top.html" %>
<%@ include file="left.html" %>
<%@ include file="aboustus.html" %>
<%@ include file="bottom.html" %>
2) disclaimer.jsp
<%@ include file="top.html" %>
<%@ include file="left.html" %>
<%@ include file="disclaimer.html" %>
<%@ include file="bottom.html" %>
this would reduce ur maintainnce as if u want to change top logo only top.html needs to be changed and it would affect in all pages
regards
[email protected] -
Passing variables using the URL
in the past I have alsways used internal navigation methods
within Flex - i.e. viewStacks, and linkBars etc... but I need to
use an (existing) external menu and link (communicate) it to my
Flex Application.....
is it possible to pass variable to (into) a flex 2
application using a URL
e.g.
http://...............
?page=homepage
picking this variable ("page") up and getting its value (in
this case "homepage")
and then use the variable in the Flex application to display
the relevent component...... ???
basically, I am trying to navigate through a Flex application
using an external menu system etc...... and displaying the
particular components within the Flex application relevent to the
select links (within the external menu system) communicating the
two using a URL etc......
thanks,
Jon.Passing data into a Flex app using the url on startup
requires working with the html handler, causing it to build
flashvars in the Embed or Object tag. Inside Flex, these are
accessed using the Application.parameters array.
But it sounds like you want ongoing communication between the
Flex app and the browser. For this you should use
ExternalInterface. I have not used it at all, so I can't be any
specific help.
Tracy -
Is it possibe to pass variables into edge from the URL? I can see a scenario where you could send people a link like site.com/myedgeanimation/?=bob or site.com/myedgeanimation/?=alice and BOB and ALICE could each get a personalized animation.
Hi,
If you want to implement the equivalent of Flashvars, you will find an example here. -
Passing variable threw the url to flash
Is it possible to pass variables to a flash obect threw the
url and how would the url look?
something like this?
http://critcore.wisc-online.org/cri...ml?Objectid=183
then I would request the objectid in flash using send and
load? Or how would I retrieve that?
Thanks for your help I appreciate itit would look like:
http://www.yoursite.com?theVariable1=var1&theVariable2=var2
in flash you just access it with _level0 ie:
trace(_level0.theVariable1);
trace(_level0.theVariable2); -
How can I include a captivate variable in the URL of the website widget?
I am using the website widget to bring up some customized content during the course.
The URL contains a variable which will be different for every user.
I can't find the option of including a variable in the URL with the widget.
Has any figured out how to accomplish this?I am using Cp8.
I publish in both swf and html5 formats so that the course functions on all device platforms.
A swf only solution would preclude IOS since it doesn't support flash. -
How do I program Instrument I/O Assistant to read a variable in the input string?
How do I program the Instrument I/O Assistant to read a variable in the input string? I can manually type in the string using the Instrument I/O Assistant using the "Write" or "Query" tools but I do not know how to send a variable input to the Instrument I/O Assistant so that variable can be used inside the "Write" string. For example, I have a power supply whose current I want to set to X Amps. I can type the command "PC10" to program the current to 10 Amps, however I want to be able to program it at any arbitrary current. How do I feed the value X into the code for this purpose?
You can't. The assistant was designed to be a quick and dirty way to do some basic communication with an instrument. You can turn it into a VI (right click and select Open Front Panel) and modify it so that your write string is an input to the VI or use it as a template and create your own code with VISA Read and Write primatives.
-
I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.
Hi ART,
You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
There should be an example of this in the Resource Library | TestStand
Regards
Ray Farmer
Regards
Ray Farmer -
Can we pass paramters in the partition script
Can we pass parameters in the partition script in Essbase. Where the parameters are read by a windows batch file which is executed in windows environment.
Our Business requirement, the business will key in the parameters ie(Month and Year) in a partition script dynamically.
We are scheduling the partition script through Windows Batch file.
So is it possible to create a parameter file in windows and pass these parameters to windows batch file.It should be dynamically mapped with partition Script.If possible,can anyone provide sample script to show how it works.Thank You Wills. The requirement is the users want to change the mappings in the partition script, but users are not having any access to the EAS. They want the mappings to be dynamically changed in the partition script on adhoc basis.
Admin can change the values to the substituion variables, but the requirement is users wants to change the mappings.
So they asked for the parameter file. -
How to pass parameter to the Query String of the Named Queries'SQL
Firstly to say sorry,I'm a beginner and my English is very little.
Now I want to know
How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
Thanks.benzi,
Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
Also see section 5.9 and chapter 18 in the developer's guide.
thanks -
SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?
I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
Can I use variable in the filter value?
string fileName = "Policies.doc"
SPSiteDataQuery spQry = new SPSiteDataQuery();
spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
spQry.Query = "<Where>" +
"<Eq>" +
"<FieldRef Name=\"FileLeafRef\"/>" +
"<Value Type=\"Text\">" + fileName + "</Value>" +
"</Eq>" +
"</Where>";
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Web Object Widget and replacing Variables in the URL
I am using the new Web Object Widget in Captivate 7 and need some help with setting up the URL for the widget correctly. If I hard-code a static web page address, the widget works fine. The problems comes up when I need to slightly change the tail-end of the web address depending on who is taking the course.
I need to dynamically append some variable information onto the web address that we will be calling such as:
http://www.someplace.com/customizeforstudent.htm?Student_Name=$$studentName$$&Student_ID=$$studentId$$
Is there any way to dynamically load the variable information into this widget when the student takes the course?
I know that I was able to use the samples on captivatedev.com to do this web page variable replacement when I used JavaScript on a button so I know it can be done that way.
(see: http://captivatedev.com/2013/08/08/javascript-solution-launch-a-url-with-captivate-variabl es-as-parameters/ )
The down-side of the captivatedev.com example is that it forces the web page to show up "outside" the course (either in a new window or it takes over the browser window the course is playing in. I want to use the web object widget so I can stay "within" the normal flow of the course we are developing.
I have been able to get the student name and student id from our LMS using JavaScript (thanks again to http://captivatedev.com).
Whatever process we come up with needs to work not only with Flash, but also HTML5.
Thank you for your time.
RandyHi BubbaRB and welcome to the forums. I love it when people have great questions regarding integration.. and this is an area that Adobe Captivate needs to be better at! It would be nice if the stock web page widget in Cp 7 had the ability to substitute Cp user variables in the URL to make for dynamic rendering of the web page, but unfortunately that's a limitation of the stock widget.
The web page widget on CaptivateDev.com is capable of variable substitution in the URL. You just need to enclose the variable with double dollar signs $$cpQuizInfoStudentID$$.
http://captivatedev.com/2012/08/07/adobe-captivate-6-x-widget-web-page-widget/
This widget works for SWF and HTML5 output for Cp 6 and 7 and there's a free trial available. -
What does DUMMY=1 mean in the URL string
Hello,
I am executing WAD template that contains a query for my planning layout. When I look at the URL link of the WAD in the browser, it has the following in it:
http://xxx.xxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZFI_ZFIFMAL02_WT0001&DUMMY=1
What is that DUMMY=1 at the end of the URL string mean ? I have also seen DUMMY=0 in some queries in QA and development systems. Any idea?
thanksHi,
thanks a lot for this helpful reply. One question I do have though. So, say I created an iView in portal with the link that points directly to my WAD template and the link has say DUMMY=2 in the query string. Now, if I do update my WAD template, would I need to change the link to DUMMY=3? So far what I have noticed that I do save links with DUMMY=X in the URL and then if I do update my WAD, when the user clicks on the link in portal, the WAD still gets updated. So, do you really need DUMMY=X in your link in that case?
Thanks -
Can you pass parameters to the Dashboard in a URL?
Hi,
I'm trying to launch a dashboard from a weblink in a new window but I can't figure out how to pass any parameters into the dashboard. I would like to set the prompt or the presentation variable or anything that could be used to filter the results of the 4 reports running in the dashboard. Right now the dashboard comes up with all results from all accounts and I want just results from the account with the weblink.
Is this possible?
thanksOk,
I just tried that and it still doesn't pass anything to the prompt.
I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
This is the URL maybe I messed something up...
https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
thanks -
How to pass session variables via the URL in CF10?
Hi
I have a client with some old Flash functionality (AS2). The SWF allows the user to upload an image. However a new session is being started when the upload script is called. I have added the CFID, CFTOKEN and JSESSIONID to the URL as I did in the past to maintain the session but I believe you cannot do this anymore with CF10, if this is correct can anyone point me in the right direction of how I would accomplish maintaining the session for the upload?
This has a note about CF 10 - http://forums.adobe.com/thread/1178420
Kind regards
ShaunHi Shaun
Are you facing the same issue with all the browsers?
Thanks
VJ
Maybe you are looking for
-
I just installed iTunes 10 and all it does when I open it up is show me the software license agreement, and if I click either "accept" or "decline" it closes up and does nothing else. It does the same thing when I try to play mp3 files, just opens up
-
How to give amadmin the role:Top-level Admin Role?
hi, To the user amAdmin , i cancel the role:Top-level Admin Role,as a result, amadmin becomes a common user without the priveleges such as creating users!how to restore the role for amAdmin?thanks in advace
-
Hi I can't see audiobooks on my library options? can anyone help please?
Hi I copied my library to a hard disc and pointed iTunes to it via preferences and the audio books option doesn't now seem to exist in library. The audio books are still there, i can see the file if i go in though finder. Can anyone help please?
-
How do I escape from a search in the app store
How do I escape from a search in the app store
-
Hi all, A critical scenario I am stuck in. My client has 3 plants viz. 1000, 1100, 1200. Plant 1000 gets sales orders from different customers and production happens on plants 1100 and 1200 through special procurement key. Customer A and customer B a