I have a web server that shows an application that in turn manages some networked devices. Previously, the application was used by "fat clients", and it was trivial to associate a fat client with the device - by means of the fat clients' IP address.
Now, in a Terminal Server environment with "real" thin clients (Wyse Terminals, e.g.) sh...
Possible Duplicate:
Include javascript file inside javascript file?
Is this possible? Including a reference to another .js that your current .js file code is reliant on instead of having to add 2 includes in every page to ensure that both those files are there?
I assume the answer is no...as I have not found any info on it o...
i have a vb6 project which uses web-components to open a HTML file, whenever i execute the vb6 program it asks me "Active X control on this page might be unsafe to interact with other parts of the page.Do you want to allow this interaction? Yes or No"
How to bypass this pop up?
...
Hi guys,
How do I get cursor X and Y in javascript?
var $curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var $curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
I had found this two, but they appear as "undefined". Any ideas?
Thanks!
...
Can someone look below and tell me where I'm off?
I can't get the custom icon to display - only the default.
thanks -
<script type="text/javascript">
//<![CDATA[
<?php if ($er_imglayout == 4 && $row->image2) { ?>
function domap()
...
I read "Dive into Greasemonkey" written in 2005. It mentions that Greasemonkey wraps a user script in an anonymous function wrapper. Does Greasemonkey insert the wrapper into the source JavaScript code or add it as any event handler such as window.onload?
...
I would like to pull data (string) from a column called "Limit" in a table ("displayTable") in javascript. How do I do that?
var table = document.getElementById('displayTable');
var rowCount = table.rows.length;
for (var i = 1; i < rowCount - 1; i++) {
var row = table.rows[i]["Limit"].ToString();
alert(row);
...
Hi,
I have created a client side array of javascript objects that I'd like to post back to the server. But when I do the following the array is coming back as 'undefined' Serverside in the FormCollection.
I'm using jQuery and here is my javascript code:
function MyObject(){
this.Param1;
this.Param2;
}
var myArray = new Arr...
Hi,
how in javascript insert smarty variables ?
var info = {
us: 'User: {$UserName}',
ad: 'Address: {$Address}',
img: 'Image: {$URL}'
}
And now show: User: {$UserName}, how show values?
For example: User: Peter
Thanks
...
We have a tool that allows people to add code to a dynamic page.
A bit of code (a widget) needs to be injected into the DOM, not hard coded into the html. I use jquery to do it. The problem is that it ends up redirecting the page...
I need to solve this.
Here is an example. Create a page with the following:
<script type="text/javascr...
Hey guys, I think I need a new set of eyes to help me look at my code which isn't working as what I've expected. Sorry for the relative ease of the question but I don't really code in Javascript. Anyways:
Basically what I'm trying to do is to get the image to change to an inversed version on mouse over. So far I'm only testing the image...
I am writing an application which needs "near real-time" updates from a browser app. The other requirement is that it use as little as possible bandwidth (so polling is not an attractive option). My idea is to use an XmlHttpRequest and just let the server wait to respond to that request until there is something to send back. This coul...
I tried modifying the Jquery ui datepicker, but it didnt work in Ie7 and chrome.
but since im not a javascript expert I need to find a premade solution, something that makes certain days links.
Thank you
...
Hi All,
I wanted to know if there is a way I can abort the default drop operation in dojo. I am doing some custom manipulation in the function,
dojo.subscribe("/dnd/drop/before", function(source, nodes, iscopy){
//Custom manipulation
});
And from this function, I want to cancel the drop, similar to what happens when you press t...
This should be simple, but I'm stupid so...
I want to do a simple conditional statement to see if the calendar has already been rendered within a div. Something like this:
if ( $('#calendar').fullCalendar() )
{
alert("calendar exists!!");
}
I want to do this so that I can remove, then re-init the calendar programatically. Basicall...
I have the following Javascript code:
var ans_el = document.createElement( 'input' );
ans_el.setAttribute( 'id', unique_int_value );
ans_el.setAttribute( 'type', 'radio' );
ans_el.setAttribute( 'name', 'group' );
ans_el.setAttribute( 'value', 'myValue' );
ans_el.onclick = myFunction( this.id, this.value );
// Add ans_el to DOM.
funct...
Hello – My question is best summarize with the intended output and the real output. Any clue why it's doing this, using the following HTML and JS code?
HTML Code:
<h3>CATEGORY 1</h3>
<p>Item 1</p>
<p>Item 2</p>
<h3>CATEGORY 2</h3>
<p>Item 3</p>
<p>Item 4</p>
<h3>CATEGORY 3</h3>
<p>Item 5</p>
<p>Item 6</p>
JavaScript / jQuery Code:...
Users run my HTML files locally, straight from a CD.
I want to allow them to choose a bunch of videos and create a playlist on the fly.
This works very well if I run a web server but when I run the HTML itself it fails.
The player is created (using swfobject) and all my other code runs but playerReady never fires so I can never get th...
It seems this is a known problem and has been asked several times before here in SO however I do not see anything specific to jQTouch so I thought I would give it a try.
jQT will dynamically load pages when a link is clicked. In this page I would like to include something like
<script>
$.include('javascriptfile.js', function() {alert('...
Hi, I've got an Update Panel and a button that look a bit like this:
<asp:UpdatePanel runat="server" ID="querypanel" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="submit" />
<asp:PostBackTrigger ControlID="okbutton" />
</Triggers>
<ContentTemplate>
<asp:Button r...