Link / Function - Set Source Of A Frame Equal To A Variable?

Apr 18, 2011

set source of a frame equal to a varialble:

Code:
<script type="text/javascript" language="javascript" >
//test
function makelink()
{
var qual = '';
//set stud = mm_adl_API.LMSGetValue(""cmi.core.student_id")
[Code]...

View 1 Replies


ADVERTISEMENT

Setting Variable Equal To Php Variable By Passing A Parameter?

Aug 12, 2011

Code:I am having problems with the following. I am wanting to hide <tr> in my table (employees) and only show employees that are in the selected department (selected via dropdown box).I need to set a javascript array to a php array. I am looping and assigning the array and am wanting to pass a javascript variable as the index in php array. I have marked my problem lines in red. Thanx for any help.

<script type="text/javascript" >
function display_elements()
{
var departments = new Array;

[code]....

View 1 Replies View Related

Making One Variable Equal Another

Nov 9, 2011

I'll get it out their early, I am somewhat of a javascript novice.

Here is the code I am working with:

<script type="application/javascript">
$(document).ready(function() {
var numitems = $("#foo6 > li").length;
var secondstartpoint = numitems -3;

[Code]....

As you can probably see I am trying to set the start point of a jquery carousel to equal a variable that I have created. You can see I have tried " start: secondstartpoint", but this isn't working. I think possibly because the way the plugin is formatted so that the "start" option can only equal a number.

View 2 Replies View Related

Using Javascript To Detect Frame Source

Jul 23, 2005

I have two frames. "Top" contains a local file on my server with the aforementioned javascript. "Bottom" is a remote website on a server I do not control. I want to use javascript in "Top" to determine what the current url is in the "bottom" frame...

View 1 Replies View Related

Change Frame Url With Clicking Link In Another Frame

May 22, 2011

I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: click. How to do that? (I don't see any javascript code)

View 2 Replies View Related

Change Content/source Of Frame On Another Page?

Mar 26, 2009

Let's say we have two separate files / pages:

File A - www.example.com/index.html There is an iframe on this page which contains different links. Every link leads to File B (e.g. www.example.com/news.html) which in turn has a frame.

The links on page A should change the source of the frame on page B. In brief - the frame on page A opens page B and every link should change the content/source of page B's relevant frame...

View 5 Replies View Related

JQuery :: Load Page Into Div Only When Database Variable Is Equal To 1?

Nov 14, 2011

Find a solution to this... I am trying to get a page to load into a div, but only if a database variable is equal to 1, if the variable is not equal to 1, it should check back every 5 seconds. Once the page is loaded into the div, it should stop checking. Also when the page that was loaded into the div is closed, everything starts over again.

View 19 Replies View Related

Getting Text Input To Equal A Variable And Work Properly?

May 22, 2010

<html>
<head>
<script language="JavaScript" type="text/javascript">
var seq = new Array(3)

[Code]....

basically, i want to change the variable "str" from "vyrfcd" to document.frm.ab.value, or document.getElementById('ab')

so that the function takes from the text input rather than a static variable

but i'm having trouble getting this to work when i substitute either of those in

View 5 Replies View Related

Pass A Php Variable To A Function Using A Link

Apr 17, 2010

I am trying to pass a php variable to a javascript function using a link but it doesnt get through.

Code:

View 10 Replies View Related

JQuery :: Find Node Text - Making A Variable Equal The H1 Html() Without The Span Text

Nov 16, 2009

<h1>November<span>2009</span></h1>

making a variable equal the h1 html() without the span text.

// equals 'November2009'
var monthDelete = $('h1').html();
// I need just 'November'

View 1 Replies View Related

Change A Variable Within The Source Url

Oct 27, 2010

I'm sure this is simple but here is what I need to do:

I want to change a variable within the source url. Heres an example of what I'm trying to say:

This works fine, but I want the variable X to be elsewhere, like this:

How do I go about doing this?

View 4 Replies View Related

Assign Variable Value To Source?

Oct 10, 2011

I have a variable in a js slideshow as follows :

source:[URL]

I have a form set up in which the end-user enters in the 'alexr2012' (form variable = sname) How do I change out the alexr2012 to sname so that the Data value is not hard coded ? that is - the data value is determine by the end-user entry ?

View 2 Replies View Related

Write The Contents Of A Variable Into The Source?

Mar 12, 2009

I have the variable myNumber in a javascript script.myNumber contains the digit 44 in it. I can print myNumber in many ways (alert, document.write..) but I do not want to do this, I do not want to see 44 in a browser, I need 44 written in the source code so my parser can pick it up.

The problem: myNumber is a dynamic variable, its value changes, that's why I cannot write it down like this: var myNumber="44";

View 6 Replies View Related

Get The Source Code Of A Page And Contain It In A Variable?

Apr 19, 2009

Is there a function in javascript to get the source code of a page and contain it in a variable, or automatically obtain information from it in some way?For example, if I needed to get the title of a certain page, would I be able to somehow implement document.title to get the title of a webpage?

View 4 Replies View Related

Storing Page Source As A Variable?

Mar 26, 2010

I need to write a script that parses a web page for a given delimiter and then stores the following 50 characters as a variable. I wrote the following php script:

Code:
<?php
$del = "picture_id";
$url = "http://xxxx.net/xxxxx/xxxxxx.php?do=xxxx";
$source = file_get_contents($url);

[Code]....

The delimiter is always going to be constant, however the succeeding characters will be different each and every time. I need to write this in Javascript because it is hosted on my server, and ran by users who post on my brothers message board (which is hosted elsewhere). Since Php is server side I always get "guest" as a value rather than the random string of characters like it should be.

View 2 Replies View Related

JQuery :: Get Full A Href By Link Source?

Jul 27, 2010

How to get full <a href if I have only link for example[URL] ?I have this link in variable "_src".

View 4 Replies View Related

Thumbnail Link To Main Frame?

Oct 14, 2002

I have a site with 2 frames. The navigation frame is on the right side and the larger main frame is on the left. The navigation frame is nothing but a bunch of thumbnails that scroll when the mouse hovers over “up/down�. The links are the thumbnails. I hope you get the picture… a user would click on a thumbnail and go to a site. The problem is that I want the thumbnail to link to a site and open it in the frame on the left (the main frame.) The only options I have (through Dreamweaver) is _blank, _parent, _self, _top.

The script I think that might need to change is below. Can anyone help me and figure out what needs to be changed? Code:

View 7 Replies View Related

OnClick Link To Open In Frame?

Sep 11, 2010

I have a code like this to swop images in a menu:

Code:
<a href="javascript:staySet('btn-contact')""><img border="0" src='../images/btns-menu/btn-contact.png' id='btn-contact' onmouseover="SwapImage('btn-contact')" onmouseout="SwapImage('btn-contact')" alt='''.>

I need to create a onClick event which tells te link to open a html file <blabla.html> into a frameset name.

View 2 Replies View Related

Link In A Pop Up Allowing To Display A Page In A Frame

Jul 20, 2005

I look for a script allowing to display a page in a frame as from a link in a pop up (and close it in the same time The name of my frame is "body" In the pop up i try this function in the head section :

function reroutage() {
parent.frames["body"].window.location="assistance.htm";
window.close();
}

but it does not works, why?

View 1 Replies View Related

JQuery :: Onclick A Link, Want To Get Display Div In Other Frame

Nov 14, 2011

I am using two frames, left side frame, i am having four links...

"
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

[Code]....

On click of link1, a div should display inside the "content". On click of link2, another div should display inside the "content". Like this for all link, separate div should be displayed.

View 1 Replies View Related

Link To Close Window And Open Frame?

Mar 1, 2009

I have a page with 3 iframes it has a link to open up a page and when the user clicks on a link on that page - I want the new page to close and the link to open in the second iframe on the original page

View 4 Replies View Related

Make Script Link Open In A Top Frame?

Nov 5, 2011

Make the links below open in the "top" or "parent" frame of a window. For example, in HTML, code...

I just do not know how to make the links below perform in the parent window. (or even a new window if that is only possible.)code...

View 1 Replies View Related

Block A Frame Reloading When A Link Clicked ?

Aug 13, 2009

i'm using frames and they are split vertically of 20% & 80% and in top frame i have my site's information and when i ever i click something on the top frame then the lower frame loads content from external sites.

But when i click something from the lower frame , in some sites they are using js to change the location url directly and it reloads the whole page in the current window.

But in such case i dont want to reload the whole window instead change the frame only ..

I cant block javascript on client machine and couldn't ask for that either!!

Related to this i have some doubts, Can i detect the url to which the site is reloading and then reload the frame with that url . I fear thats not possible..!! I used the onbeforeunload function to detect that the site is going to unload and reload a new page . but what i can i do just making sure that the site is not reloaded.

View 4 Replies View Related

Document.write Won't Work Just After An Href Link In A Frame

Jul 23, 2005

I've got a little Quizzer program that asks a question in the upper frame of a frameset and then lists the answer in the lower frame. Answers can be plain text, straight html, a sound, or a LINK. I have a function that builds the answer frame using document.write(among other things). This code works fine until you encounter a link. It dutifully displays the link in the lower frame but the very next question builds the newContent perfectly but does NOT write it to the frame even though it appears to execute it.

if (answerType == "link")
{
parent.frames[1].location = URL;
} else {

// pitiful attempt to clear linked page
parent.frames[1].location.href = "QuizzerAnswer.htm";

var newContent = '<html><head><title>Quizzer Answer</title>'
newContent += '</head>'
newContent += '<body>'

if (answerType == "text" || answerType == "html") {
newContent += answerValue;
}

if (answerType == "sound") {
newContent += '<embed src="' + answerValue;
newContent += '" width="170" height="25" autostart="true">'
}

newContent += '</body>'
newContent += '</html>'

parent.frames[1].document.write(newContent);
parent.frames[1].document.close();
}

View 5 Replies View Related

Ajax :: Open A Link From Tree Into A Specific Frame?

Nov 16, 2010

Code... I can open it up in the current page, but the menu is in a frame and I need to open it in a fram called "home".

How can I do that?

View 5 Replies View Related

How To Get Source Of Nested Function ?

Jul 20, 2005

function foo () {
var xyz = 123;
function bar () {
var abc = 456;
}
}

I can alert (foo) to see the function source

Is there an alert (<something>) that will show me only the source of
function bar inside function foo ?

View 5 Replies View Related







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