I mean, take the following HTML codes as example, ignore the whitespaces.
<p>
paragraph-text
<span>
span text
<i>it</i>
</span>
</p>
I have the pNode object and the index of "a" in "span text" within pNode.innerHTML as a whole, that is 23 here since pNode.innerHTML="paragraph-text<span>span text<i>it</i></span>", the open...
I want to use this page scrolling technique from js.
http://www.xfunda.com/index.php?view=article&id=55%3Ajavascript-page-scroll-scroll-a-web-page-from-bottom-to-top-smoothly&option=com_content&Itemid=75
But what if the user doesnt have js
<p><a href="javascript:void(0)" onclick="goto_top()"><img src="/goto_top.gif" alt="...
I have a form with some input fields (6). When I click the submit button "I would like to format the URL" in such a way:
/actionname?input1|input2|input3|input4|input5|input6
and maybe for null values:
/actionname?input1|input2||input4||input6
and maybe a time-stamp for when the user clicks the submit button.
Can this be done using j...
I am using MVC.
I have a view model which contains a Business object.
I need to post this Business Object back to a controller action using AJAX.
For now, I am using Url.Action function to create my request Url for AJAX and pass the Business Object id as a request parameter to the action. I then have to retrieve the object from the dat...
Hello,
I want to make a dynamic populated treeview from mysql database in PHP. I have searched a lot for that, but i haven't got the solution yet (jquery treeview seems not working in my context).
And i want to realize is that i extend the treeview by clicking the "+" sign.
When i click the item of the treeview, it will execute a que...
Normally I open a window with javascript to show information about a upload progress,
but it doesn't look good and many users uses popup blockers.
So I thought I could show these information in an iframe,
but the iframe doesn't load during the upload.
But if I open the iframe during the upload in a new window/tab if loads.
How could I...
what i an trying to do is use jquery and a ul menu and on click it loads section divs from an external file and displays them in a content div and in thos section div i need this code to display it's results
<script type='text/javascript'>
imvu_avatar_name = "TheDarkRaver";
imvu_panel_name = "rankings_panel";
imvu_section_name = "mp_ri...
I'm wondering if there are any 2D graph plotting libraries that run on the client side using JavaScript? The basic idea is that you could put up a plot in a browser and the user can change things like X and Y scales and limits, zooming in and out, without having to constantly reload the web page from the server. The data itself would b...
What is the best cross-browser way to get a flat mouse coordinate input data and simple callback for mouse events for my rectangular game area on my web page, even when it has loads of larger and smaller images and text string overlaid haphazard onto it?
And what is the best way to insert or remove a text string or semi-transparent imag...
I'm using Scripaculous' in place collection editor to present the user a with list of customers to assign to a contact dynamically. I am passing a value parameter as detailed in the documentation so when the select is generated it will auto-select the current associated customer (if there is not one already the default is provided.)
Th...
I have a cookie I am setting when a user clicks a button on a form with the following "OnClick" handler...
<input type="button"
OnClick="
alert(document.cookie);
var d;
d = new Date();
d.setDate(d.getDate() + 365);
document.cookie = 'LanguageReference' + '=' + document.forms[0].UserSelectedL...
Hello
Recently a colleague had to call a .NET 2.0 web service from script. We noticed that we'd have to put the [ScriptService] attribute, either via AJAX extensions or upgrading to 3.5.
That's all I've been able to find out - no-one explains what it's doing under the hood!
Can anyone enlighten me?
Thanks
Duncan
...
I'm trying to run DOH from dojo-1.3.2 to test simple Javascript functions from command-line. However, I can't seem to get anything to run and the net seems to be devoid of DOH command-line documentation.
Ideally the structure I would like is:
Tests reside:
C:\myproject\tests\
Dojo reside:
C:\dojo-1.3.2\util\doh
As of right now I've ...
I have written a plugin with the following "signature":
jQuery.fn.attach = function(element, settings, duration, options, callback) {
Here element is a jQuery object, settings are my custom settings for my plugin and duration, options and callback are all parameters that I use in jQuery's animate, like this:
someObject.animate({ some...
o.prototype = {...}
is working only if o is a Function.
Suppose I've the following Code
conf = {
a: 2,
b: 4
};
conf.prototype = {
d: 16
}
conf.a and conf.b is OK and returns proper values. But conf.d doesn't return 16 rather it goes undefined. Is there any solution suck that prototype based generalization can also be applied...
Hi All,
How do I delay JavaScript - I tried the following but it doesn't delay??:
setTimeout(document.getElementById("loading1").innerHTML="", 4000);
Thanks,
B
...
I have some Javascript that dynamically adds rows/fields when you click the button, "Add New Item." The value for each row is captured in a hidden text field, "txtIndex." (The initial value of txtIndex is set to 1.) I then capture txtIndex in a variable in vbscript to loop through the values so that they can be all inserted into a SQL...
I'm now implement such a task:I need to convert PHP variables to javascript
$arr['name1'] = 'value1';
$arr['name2'] = 'value2';
so that after processing,should be:
<script type="text/javascript">
var name1 = 'value1';
var name2 = 'value2';
...
I hoped to do it this way:
<script>
list(<?php echo join(',',array_keys($arr)?>) = <?php...
I'm looking for some ideas for the most efficient way to remove trailing html <br/> tags using javascript or jquery.
RULES:
The br, at the front and end must be removed.
It must remove non-closing and self-closing br tags.
All br within the textual content must remain untouched.
THE HTML:
<div class="generatedContent...
How to decrease front end development time in a company/team environment? My company is asking to suggest idea to make front end development process faster?
Some points
I realized main problem is client never provide right information at first time
and many front end developer works on same project on same CSS so everyone makes his ow...