[ActiveScript] Modify Variable Of MainApp From Popup?

Sep 9, 2011

I need to modify a variable (Interval) of mainApp from a popup (Intervalo), the code is:

public var Interval : Number = 10000;


View 6 Replies


JQuery :: $("selector" - Code) And .html() - Load Div In A Variable - Modify It In Another Variable And Then Change The Document Injecting The Contents

Dec 13, 2011

I want to load an html div in a variable, modify it in another variable; and then change the document injecting the contents.

1. I load the html to be changed in a variable (code)
2. I modify an attribute of <param> using attr() and I put the result in a var (newcode)
3. I change the html in the doc

I've used the debugger, and all steps give the expected results, except of newcode.html(), which is a null string. Why?


View 8 Replies View Related

JQuery :: What's The Efficient Way To Modify Variable

Apr 4, 2011

I have this div: named as "contact_person"

But I wonder if I use this jquery script;

But, how Could I manipulate / modify the conten variable so then the copied content have a different buttons?

Which is;the both button named as:contactpremovecould be changed its id numbering,and then another button named as :contactpadd could be removed?

The buttons that I mentioned is colored using RED And Blue color.

View 2 Replies View Related

Modify String Without Creating A New Variable?

Jul 30, 2010

String.prototype.trim = function(){
return this.replace(/^s+|s+$/g, "");


It's possible with numbers:

var myNum = 10;
alert(myNum); //11

View 4 Replies View Related

JQuery :: How To Modify Local Variable Of Ready Function

Dec 11, 2011

I want to modify a local variable of the ready function set like so:
$(function () {
var modifyme = 0;
I cant change the code setting the ready function, as I am writing only a greasemonkey userscript. I already tried using the .data("events") method, but it never listed the "ready" event. Any function so I can modify the variable!

View 2 Replies View Related

Passing Variable To Popup

Oct 4, 2006

I've perused the posts on popups and variable and can't seem to get what I need. Can someone take a look at my code and tell me what I'm missing.

I want to open a popup window and provide a variable that I grab from a select list on the main page using javascript. This code works to grab the selected option in the list and open a new page but I want it to do this in a pop up so I can still see the main page.

HTML Code:

View 1 Replies View Related

JQuery :: SimpleModal - Parsing Variable From Original Php To Modal Popup

Jul 22, 2010

I have a the SimpleModal running on a php page, and on said php page, a varaible is defined; e.g. $var = "John";

and then the usual gubbings for simpleModal, which calls modal_output.php - the file generating the output for the modal popup.

I need to get that $var into this popup, so the popup can read:

"blaa blaa John"

This should be simple, I thought - but I can't parse it through _SESSION, or any method I try. I even tried hacking it into:

$.get("contact_modal.php", function(data){

to read $.get("contact_modal.php?var=<?php echo $var ?>", function(data){

but that breaks the js

Is there anyway I can parse the variable from the original page into the modal popup page?

View 3 Replies View Related

Search Mysql Database In Popup And Select Variable To Pass To Main Form?

Aug 7, 2010

Basically the user would see a button on a form that would be something like "add contact"...then a window opens that shows a search window (want to implement something like [URL]) and it would show all the contacts available in the contacts table...then the user selects the contact to add (via a link).

I think i could get it this far, but how would i then pass that $row to the main form so that i can use the fields from that $row in the contacts table on my form?

View 1 Replies View Related

Way Of Passing Variable From Parent Window To Popup Window

Jun 27, 2002

I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.

View 1 Replies View Related

How To Modify Hidden Value

Jan 21, 2006

I have a HTML file,there are hidden parameter in in this HTML,hidden parameter name is made of "test"+number,such as:

<form name="test" id="test">
<input type="hidden" name="test0" value="9">
<input type="hidden" name="test1" value="5">
<input type="hidden" name="test2" value="6">
<input type="hidden" name="test3" value="1">

I want to dynamic modify the hidden value,for example
i=3 //the value of i is get dynamic,i=2 or i=3 or any number
test.test<i>.value="99" I know above sentence is error,how to write it correctly?

View 1 Replies View Related

Way To Modify Content

Sep 17, 2011

How to modify content?

View 1 Replies View Related

Modify Two Different Scripts Into One?

May 18, 2009

I was trying to modify two different scripts into one, to accomplish this:

1) Image swap when user rolls over

2) Drop down a menu when user rolls over

The javascript in the header (unaltered) for the menu dropdown is:

<!-- dd menu -->
<script type="text/javascript">


The js in the head for the rollover swap is:

<script type="text/javascript"> <!-- function roll(img_name, img_src) { document[img_name].src = img_src; } //--> </script>

Now, I altered the code in the body to combine the two.Here is the original version that worked (to dropdown the menu):

<ul id="sddm">
<li><a href="#" onmouseover="mopen('m1')" onmouseout="mclosetime()"><img src="about1.gif" border="0"></a>
<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">


View 3 Replies View Related

How To Modify The Color According To Background?

Jul 23, 2005

I have a function returning a string but the problem is that the
color of it is blue which suits me well for some pages but not for
others. Is it possible to "feel" what the color of the background
in the current document is and set the color of the output accordingly? The
background will be an image, in most cases.

View 11 Replies View Related

Modify Frame 'onload' ?

Nov 1, 2005

I encountered troubles with frames.

with the folowing script in the _top page

function walk(_frames) {
for(var i=0; i<_frames.length; i++) {
var frame = _frames[i];

I can walk thru all the frames and display their name. what I want to
do is to modify their 'onload' script to be notified when the frame
content has changed (no, I can not set onload='...' in the html) but
even if I set onload='top.myproc(...)', this top.myproc is never called.

is it possible?

View 6 Replies View Related

How To Modify Events (for Ex. +ctrlKey)?

Mar 1, 2006

I'm stucked in modifying events to make a multi-select select-input
being additive/subtractive only. Because I should offer a solution
similar to that select for DAUs (aka. MostIdioticUser) I have to
make something else (checkboxes?).

It's not that want to fiddle around with events, but it seemed to be
the most simply-plug-in-working-no-change-html-php solution.

Here is a fragment (the select and the plug-in code ...

View 2 Replies View Related

JQuery :: Modify XML Document Using It?

Aug 24, 2010

I have an XML(RecentBook.xml) file like[code]...

I am able to get the values of the author and publisher.

But my requirement is to update the above XML document by changing the values of the textboxes( 'bookAuthor' and 'bookPublisher').

After entering the new values in the above text boxes the xml should modify and next time when its loaded it should give the updated values.

Can I do this by using jQuery?

View 1 Replies View Related

JQuery :: Modify To Toggle More Than One Row?

Dec 5, 2011

I'm trying to build a table that has hidden rows below certain shown rows.

How would I modify this script so that it shows all of the hidden rows below a row, but not the hidden rows throughout the entire table?



You can see the HTML table structure here, as well as it working with only 1 row. URL] I was able to get all the hidden rows throughout the entire table to show, but that's not what i'm looking for. I just want the hidden rows that are below their respective shown table rows.

View 2 Replies View Related

JQuery :: OK To Modify CSS Classes Through It?

Oct 21, 2010

We have a need to modify the actual css style definitions dynamically.We can successfully modify css class styles via the following steps. It seems to work fine in ie and firefox.

Does anyone know of a reason it might cause problems?[code]...

View 8 Replies View Related

Modify IE Print Setting?

Jan 12, 2010

I need to modify IE print settings(paper size, print orientation) automatically,
by javascript and can not use ActiveX control or reduce IE security setting.

View 6 Replies View Related

Modify A <script> Tag Content?

Jul 9, 2011

I have some JS code to work on a data set with file name "data.txt" in the header section of an HTML page. <script type="text/javascript" src="data.txt"></script>

What I am trying to do is to ask a user to input a different file name, then update the file name in the <script> tag, for example, to

<script type="text/javascript" src="new_data.txt"></script>

But I don't know how to update the file name.

View 1 Replies View Related

Keyword - Modify The Src Attribute ?

Feb 12, 2011

I'm trying to get the following function to work:

When called like so:

I could just give each image an ID and not use the 'this' keyword, but I haven't used it much so I'm curious about it. It's sending the image element to the function, so why can't I modify the src attribute with that information?

View 7 Replies View Related

Modify Array To Allow For Links?

Oct 5, 2010

I'm using this code for slideshows on my page. But I want to make it so that I can put a different link for each image. How can I modify this to do that?


View 3 Replies View Related

Button To Modify Textarea

Nov 17, 2005

I'm trying to make a script that will generate source code for a few images. I want it so that when people press the generator button it changes what is in the text areas, but so far I cant get anything to work. Code:

View 1 Replies View Related

Modify Every Link On A Page?

Mar 17, 2010

What I am trying to do is insert a simple piece of javascript somewhere on the page that will modify the href location of every link on the page to a specific value defined in the script

Such as

Lets say for example the page contains 3 links

<a href="http://www.somesite.com/page1.html">Some site</a>
<a href="http://www.somesite.com/page2.html">Some site 2</a>
<a href="http://www.somesite.com/page3.html">Some site 3</a>


I am doing this so that once the bit of javascript is entered into the code of the page, all links on that page get replaced with a link pointing to a special offer page(including the original link as a variable)

how I write the javascript to update all links on the page on the fly every time the page loads??

View 6 Replies View Related

Modify The Windows.location?

Sep 4, 2011

I have a website that when built has the additional directory /joomla after the domain name. That is no longer required. I am trying to get rid of it when people visit the site as it makes some pages not work Heaps of search engines have the url including the /joomla.I thought if I could detect for the string /joomla then remove it and then force the page to go to the new location I would be safe, and it should handle any trailing page info as well.I thought it would be easy Below is my sad attempt:

HTML Code:


View 2 Replies View Related

Drag Bar To Modify CSS / Input Value

Jun 21, 2009

I need to do something which seems relatively simple, but my total lack of javascript skills is holding me back. I have an input box which is used to specify a font-size, like this:

Code HTML:
<input id="textheight" type="text" name="size" value="6" />

And I want to have a draggable bar which changes the value in the input box as it is dragged across the screen. This is so that users can simply use their mouse to modify the text size. I also want to dynamically change the CSS to match that change. I was thinking that changing the CSS value inline in the HTML could work - if I can figure out how to do that :P


View 6 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved