Allow Access - Via The <script> But Not Directly?

Apr 4, 2010

Is there any way I can allow access to a JS via the <script> but not directly?

View 2 Replies


ADVERTISEMENT

Window.opener.location - Directly Access An Applet In Another Page?

May 24, 2011

In phase of my deployment I send the user a window from a servlet and inorder to communicate with an applet already loaded in another window in the browser I thought I could set the window.opener.location="${formbean.property}"; and it partly works, it get set, I see the new window flash, but it then executes that url. Two questions?

1. setting the window.opener.location in an onLoad() should not force a post back to the server, correct? I am just trying to keep that window I want up there and set an internal property so I can access the applet in the other window. Trying to make this "synthetically" a child of that page opened with the applet so I can call the applets methods simply.

2. Is there another way for a new browser window to directly access an applet in another page? I could go the route of making a probe applet and hoping they share the same JVM, (JRE1.6.0.25) access it that way. Is/how that the way to do it?

View 2 Replies View Related

Going Directly With Another Input Box?

Sep 19, 2011

Code:
<script type='text/javascript'>
window.onload = function()
{
document.getElementById('goDirect').onchange = ddmOnChange;
}
function ddmOnChange()

[Code]...

View 3 Replies View Related

Whether To Use SetElement Or Just Set The Attribute Directly

May 21, 2006

I am curious if there is a benefit to set attributes directly, in my javascript, or to use setAttribute.

For example, I have this:

View 1 Replies View Related

Setting An Object's Prototype Directly?

Oct 14, 2005

I was hoping I could do something like this in javascript:

var a = {x:1, y:2};
var b = {x:2, z:3};
b.prototype = a;

And then:

b.x => 2
b.y => 2
b.z => 3

The purpose is to set up "b" as an override of "a".

I know it doesn't work that way because "prototype" is not a magic property on any object but constructors only. Is there a way to implement the above without involving a constructor?

View 3 Replies View Related

Including One External JS File Directly Into Another

Feb 3, 2007

I am seeking a method to load one JS file directly into another,
*without* having to dynamically write <scripttags.

Is there any method whereby I can call only one external JS file using a
single <scripttag, but have that external JS file insert into ITSELF
the contents of five others? Code:

View 38 Replies View Related

Ajax :: Returning A Value Directly From A Function?

Dec 1, 2009

I'm attempting to simplify my javascript code when it comes to ajax, but afterwords it only prints 'undefined' to the screen rather than what I want it to print.

I want to be able to put something like this on my main page onclick="document.getElementById('output').innerHTML = print_output();" where print_output() is the ajax function. This way I don't have to use a function to assign values directly to innerHTML and I don't have to muck about with a js file whenever I want to change my page layout.

To do this, I created a recursive function:

function print_output(return_value) {

if a value has been passed to the function, simply return it
if(return_value || return_value == 0) {
return return_value;
}

[Code].....

but like I said, it prints 'undefined' out to the screen. Why isn't this printing the contents that it receives from 'index.php' like it's supposed to?

View 2 Replies View Related

Select Tag That Is Only Directly Child Of An Element?

Aug 12, 2009

suppose I have the following:

Code HTML4Strict:
<li id="lists">
<a> ... </a>
<li>

[code]....

here it now selects all a tag in "lists" but I only want it to reference the a tag that is the direct child of "lists" li. I want it to ignore the freen highlighted part.

<li id="lists"><a> ... </a><li><a> ... </a>
<a> ... </a>
<a> ... </a></li>
</li>

View 2 Replies View Related

Calling Function Of External Directly?

Jan 11, 2011

I have a requirement that my javascript function can be called directly from the other website. I know how to add the external javascript and then call respective function

<input type="button" value="Testing direct function call of javascript" onclick="CALL THE EXTERNAL JAVASCRIPT(which will call main function in it" />

how can I create such javascript

View 3 Replies View Related

How I Can Get Current Username Directly From The System Win2000/xp

Jul 23, 2005

How i can get current username directly from the system win2000/xp not from the user ....

View 1 Replies View Related

JQuery :: Linking Directly To UI Files On Site?

May 5, 2009

I'm using the Google Libraries API to load jQuery and jQuery UI. Is it permissible to link directly to component's file on jqueryui site? For instance I'd like to load the tabs component with:
<script src="[URL]"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.1");
</script>
<script type="text/javascript" src="[URL]"></script>

View 3 Replies View Related

JQuery :: Mobile Datebox - Go To Page2.jsp Directly

Oct 5, 2011

I have a simple JSP based application which uses servlets to go between page1 and page2. Page 2 has some date fields on it.

<input name="mydate" id="mydate" type="date" data-role="datebox"
data-options='{"mode": "calbox"}'>

These render fine when I go to page2.jsp directly. If I go to page1.jsp and then click a button, which triggers either a servlet to forward to page2.jsp, then the date fields lose their formatting and appear as standard input fields. I've tried using JSF as the navigation framework with the same results.

View 1 Replies View Related

Inserting HTML/Text Directly After The <body> Tag?

Feb 6, 2009

Suppose I have a page that I cannot edit(in before "get a real host") but can apply Javascript to. For stylistic purposes, I would like to wrap the contents of the page in a <div> or <table>. Could I use Javascript to insert the needed HTML tags directly after the <body> tag in a fashion similar to document.write? I'm not very familiar with Javascript, but I've tried a few half-baked solutions of my own using GetElementsByTagName('body') and other variants, but no luck. I've tried scanning Google as well but I couldn't find anything that would work for me there either but I'm not sure if that's because I wasn't searching for the right keywords or what.

View 2 Replies View Related

Ajax :: Ability To Link Directly To Specific Tab

Mar 11, 2010

I am currently using this template by flowplayer.org: [URL]. The functionality I need is the ability to link directly to a specific ajax tab (i.e. Seagram Building, Barcelona Pavilion, New National Gallery). As of now they are just line items without any anchor tags.

View 9 Replies View Related

Row Appended To Table Directly In Internet Explorer

Jul 19, 2010

I am making a web page, and as part of it I have a table that the user can add rows to. My code works in FF and Chrome, but IE is broken.
function addrow() {
var example=document.getElementById("new");
var addHere=document.getElementById("ticketTable");
var node= example.cloneNode(true);
node.id="added";
addHere.appendChild(node);
}
This code is called when a button is clicked. New is the ID of the row I am adding and ticketTable is the ID of the table I am adding to.

View 2 Replies View Related

Write In A Input Field Directly From Keyboard?

Nov 13, 2011

this is my first thread here, but I've read your forum a lot as unregistered user. I've searched the web for a complete Javascript or some hint, but I didn't find an interesting script or article to implement what I've thought. There's a way to write text or number from the keyboard directly in a:

<input type="text" name="display" value="0" maxlength="10" disabled="disabled">

View 9 Replies View Related

Adds Listener To Each Of Relevant Elements Directly

Mar 23, 2011

I'm working on an event driven app, which currently adds a listener to each of the relevant elements directly. I am planing on changing this to use a delegated event method but this raised the following question...Which is more expensive navigating the DOM, or adding event listeners?[code]I need to handle the click event of buttons 'b1', 'b2' & 'b3', a set of these buttons can be found in each 'a1' container but not always in the same nested position. To handle the events I need to know the class of the button clicked and the id of its 'a1' container. Would it be more efficient to:

A ) Add just one listener to the 'main' div, having to find the 'a1' containers id by inspecting each parentNode of srcElement until an 'a1_*' match is found.

B ) Add a listener to each 'a1' container, the id of the container can be easily passed as an argument.

View 4 Replies View Related

JQuery :: Animation To Start Directly Without Mouse-over?

Sep 12, 2011

I have a j query animated file and i want to make some changes but i'm not good with that : the animation has a title "welcome test" on mouse-over starts the animation but i don't want that, i want the animation to start directly without mouse-over... also i need the image to appear after the animation of the logo ends...

View 1 Replies View Related

Preventing Users From Opening Index Directly?

May 18, 2010

i m working on a website. in which i m using a page which calls on index.php after that web address is called. as it has JS function which make index page open in popup. what i wanna do is now is that if someone (as many of us know root page 90% is index.php), if anyone enter index page directly. JS should check if that person came from redirect.php or not. if not, he will have some sort of error msg.

View 1 Replies View Related

JQuery :: Galleriffic - Linking Directly To Image In Gallery

Sep 30, 2011

I'm working on a gallery site using galleriffic. It is composed of 13 seperate galleries (couldn't figure out a way to integrate them into one) and what I would like is an index page which users can jump to any specific image in a gallery. [URL]. There is a current example, and what I'm trying to do is make a drop down menu form where someone could select a piece of granite, (eg. Giallo Latina) and it would jump them straight to that page. However if I link to "butterscotch.html#5" it doesn't work. Is there any way of creating a drop down menu that could handle this?

View 2 Replies View Related

Jquery :: Linking Directly To Nested Tab From External Page

Oct 17, 2010

I am trying to link to a specific nested tab fromanother page. So let's say I'm on the home page, and I want to link to: productspage > Widgets (parent tab #2) > Large Widgets (Parent tab #2's child tab #3). In other words; Directly to a non-default nested tab, from acompletely different page. Linking to the parent tabs works fine (with a standard anchor link e.g.; [URL]), but I can't figure out how to link to one of their child tabs (besides what is set as default)

Here is a stripped down version of the setup I have (I just typed most of it out, so forgive any obvious syntax errors, my pages on the site all validate):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL]">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Site Title</title> .....

View 6 Replies View Related

JQuery :: Linking Directly To Dynamically Loaded Content

Jan 20, 2010

I have a site that shows off video clips. When a clip is 'clicked' the video and related data is loaded in using jQuery. The page does not refresh. I now need to link directly to different 'videos', but am unable to because a click hasn't taken place to load the video in. It just loads the categories page. What would be the best way to allow me to link directly to the video... ? Will I need to edit my .htacess file? Will I need to somehow work out what clip they are trying to get, and 'fake' a click to impose the video/data on the page?

View 1 Replies View Related

Store Some Custom Property In HTML Element Directly?

Jul 10, 2011

I want to store some custom property in HTML element directly, like this:

[Code]...

View 2 Replies View Related

Open File From Web Browser (local Server) Directly Into Photoshop

Aug 15, 2010

I have a photo editing business with many people working in Photoshop. I am currently developing a web based application (joblist) using Javascript and PHP which should allow the photoshop designers to browse and open files/images directly from joblist/web browser into photoshop. The reason I want this instead of browsing folder is that I have a database where I store who worked on which file, when and how long it took. The concept is that, designers will select a file and click on start, as soon as they click on start the original file will open in Photoshop and there will be an entry into database (using PHP).

Once they finish the task they will close the file and click on Finish button. My joblist application will be published in a local server and the file will be open on a local network, so when they save the file it will be saved where the source file is located in (local server). The application should work in both PC and Mac. How to write the code (PHP or Javascript) which can open the file from browser (local server) directly into desktop application e.g. PHotoshop or Illustrator?

View 2 Replies View Related

Crop Uploaded Photo On Site And Store Directly On Host

Sep 8, 2010

I'm looking for an image cropping tool script that I can provide on my website for users to crop their uploaded photo on my site and I can store them directly on my host. (instead of having to go to another page, or open up photoshop etc, crop their photo, save, and then upload to my site) I see some websites providing this service, does anyone know any scripts that allows me to do this?

View 1 Replies View Related

Jquery :: Cycle Plugin - How To Link Directly To Slide From External Page

Jun 15, 2010

I've set up a portfolio using the Cycle Plugin. It works great, but now I want to link directly to one of the slides from the home page, and I'm not sure how to make this work or where to even begin. Here is a page on my site with a slideshow using Cycle. (I'm actually transitioning divs, not just images) [URL].

View 1 Replies View Related







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