i have a string path1/path2
i need to get the values of path1 and path2.
how can i do it?
(maybe regex? but i don't know their construction, maybe you'll hekp me:/
and what about getting the same from such string http://www.somesite.com/#path1/path2?
Thanks
...
I'm fetching an XML file using this code:
function getMaps(){
toLoad = loadMaps.length;
for (var i = 0; i < loadMaps.length; i++){
$.ajax({
type: "GET",
url: loadMaps[i],
dataType: "xml",
success: processMap
});
}
}
Which works fine, but I want to give processMap an...
Hi,
I'm learning developing in javascript and jQuery. I'm puzzled on why the firefox and IE are soo different in handling javascript and jquery functions.
Firefox seems to be doing exactly what I want it to do, when the IE is all over the place and quite often I can't find a reasonable explanation why certain event didn't fire off or ...
hi all..
i have a datatable which connected to DB...
i want make the data inside datatable can be edit and delete...
but of course,,after make change at datatable the data inside DB also change..
what's code to do that...??i've been try like this:
$("#datalist tbody").click(function(event) {
$(oTable.fnS...
i can chance the text color by doing this in jqgrid custom formatter:
function YNFormatter(cellvalue, options, rowObject)
{
var color = (cellvalue == "Y") ? "green" : "red";
var cellHtml = "<span style='color:" + color + "' originalValue='" +
cellvalue + "'>" + cellvalue + "</span>";
return c...
Hey, What I would like is to use the jQuery plugin: LazyLoad
But, rather than trigger the event on Window Scroll - I would like to trigger it when the
elements come into view.
(I have no scroll bars on my site, so scroll bars are not an option).
Help me before I have no hair left.
EDIT: Ok, so I got it to work - SORT OF - it only se...
Hi there again. This change from mootools drives me crazy.
HTML
<tr class="teamicon">
<td style="text-align: center;" width="100%" valign="middle">
//Blahblah
</td>
</tr>
<tr class="teamval">
<td valign="middle" width="100%">
//Blahblah
</td>
</tr>
What I want to achieve. When with class "teamicon" is ...
Is there anyway to take take a "screenshot", "save" or "capture" the active SWF element on a page as an image? I'd like for users to be able to simply click a button on my page, instead of having to need to manually take a screenshot of the entire page and then crop the image to show only the SWF element.
I found a Jquery method, althou...
How to set a default border color of a control using jquery.
if (_userName.val().trim() == "") {
errMsg += "\nUserName is a mandatory field.";
_userName.css('border-color', 'red');
}
else {
_userName.css('border-color', 'red');//Set border-color as loaded
//when page was loaded...
I tried all these for selected value of select element
inventory_rule = $("#inventory_rule :selected").attr('value');
inventory_rule = $("#inventory_rule option:selected").val();
inventory_rule = $("#inventory_rule").attr('value');
inventory_rule = $("#inventory_rule").val();
these all worked well in mozilla but not in IE
is any alt...
Right, last question for a while!
I am creating a horizontal portfolio site and am looking for some help using the scrollTo plugin in creating a next/previous style navigation for the user to flick through the images.
My HTML is:
<div id="contentRight">
<ul id="direction">
<li id="next"><a id="forward">Ne...
Hello all,
I am wondering if there was a possibility to navigate with arrow keys through a table I created with JS(using jQuery)? I mean jumping from cell to cell...The script is for Greasemonkey.
The alert, however, works. I just got no idea how to make it well-functioning.
$(document).keydown(function(e){
if (e.keyCode == 37) {
...
How to get the parent node name of the checked child node of ASP.net TreeView Control using jquery/javascript ?
$('#<%=treeMeasures.ClientID%>').find('input[type=checkbox]').each(function() {
alert($(this).parent().text());
});
...
Is this possible via jQuery ? Basically as shown in above image , I have blue background , map image and text images. I want to achieve this kind of animation at the page load or whenver this image is loaded.
...
I have the following DIV in my HTML which holds a large background image:
<div id="widget-image" class="tyreinfo1"></div>
Depending on which select box on a form on the page is selected, the background image will scroll to a different point. These positions are defined like so:
#widget-image.tyreinfo1 { background-position: 0px -105p...
When i have a textarea in a page that i fill with jQuery and i then create an editor instance using mceAddControl the old value of the textarea gets displayed in the editor an not the filled in one. Why is that so? What can i do before initialization to get the filled in String taken into the editor?
Code:
$('#content_2').html('new Con...
Hi,
I have to disable our parent page(Complete gray out and non functioning) when child page is loaded. Once I close child page then I could perform any action at my parent page.
I can not use Div at my parent page because it may be many page so i have to controlled it from child page only.
Please help me at this issue and suggest m...
Hi again.
I've got little animation in jQuery. However, I don't want to allow calling other animation, until one isn't over.
URL http://misiur.com/pasek/
HTML
<div class="tooltip act" style="display: none;" id="t_arrow_1">Position absolute GO!</div>
JS
// JavaScript Document
jQuery(document).ready(function(){
var lock = 0;
$('.ar...
I have replaced the textarea my users use to edit content with CKeditor. Before this change, users were used to save there text by pressing CTRL + S. This is done through the jQuery Hotkeys Plugin.
Since CKeditor puts its text editor within an iframe the shortcut does not work when editing text.
I hope someone can help me find a soluti...
I am using the LiveValidation plugin http://livevalidation.com/ to validate some input fields on my page. I want to be able to call a function when the validation fails to disable the save button. I have read through the terrible documentation on this plugin and I can not find how to do this.
My example code looks like this
//create t...