Hi all,
I guess I am spoiled with JavaScript. If you want to change something about the parent, you can code something like parentNode.style.etc.
<TABLE id="hasID">
<TBODY>
<TR>
<TD>
<IMG id="hasID2" src="somePicture.png">
<IMG id="hasID3" src="someOtherPicture.png">
</TD>
</tr>
<tr>
...
Well basically what the title says, when making an AJAX request with JavaScript. Does the method, i.e. GET / POST, need to be upper case? Thanks in advance.
Edit: Even a yes or no will suffice.
...
I'm totally new to ajax, but pretty good with PHP. I have a PHP page which currently refreshes every 2 minutes because it has to check for new data in the sql database. It's pretty annoying if you're using it and it keeps refreshing. The database is updated about 3 times a day, but what is shown on that page needs to be kept current with...
suppose i want to use javascript to add the following css
p:before{content:"Q: "}
how can that be done? I tried the following but they don't work.
myEle.style.:before='content: "Q: "';
myEle.style.content="Q: ";
in general, how do change the value of css pseudo-selectors? such as a:visited, a:link.
...
I use an tooltip. When I hide the native browser function for the tooltip function, (remote Attr title), after an Ajax update there is no content at all! How can I fix this?
jQuery('.tooltip').each(function(){
$(this).data('title',$(this).attr('title'));
$(this).removeAttr('title');
jQuery(this).hover(function()
{
too...
Ok so the following code produces a mask on a web page when hovering over a menu, my question is how do I edit this code to make the mask go away with mouseout event? As it sits now I have to click for the mask to go away. Any help is appreciated, thank you.
<script>
$(function() {
$("#menuwrapper").mouseover(function() {
...
Hello, i have this:
$counter = $sWall + $sWC + $sOther;
if (!empty($counter)) {
echo '(' . $counter . ')';
$counter = 0;
}
And js:
$(window).blur(function() {
tracktime = new Date();
setInterval(function() {
$.ajax({
type: "POST",
url: "imback.php",
data: {
mode: 'ajax',
...
i'm using jqgird and currently when hovering over a cell, the value of the cell is displayed in the tooltip. I want to add custom values to be displayed when hovering over a cell.
for examples values from hidden columns...
any ideas?
...
Say I have an array: [0,3,4,2,5,1]
What i want to do is sort an array such as: ["one", "two", "three", "four", "five", "six"]
so that the order corresponds to the first array. This would be the output:
["one", "four", "five", "three", "six", "two"]
Is there an easy way to accomplish this?
...
I've been asked to support an autotext functionality on our web application, similar to what Word offers. At the core this is simple automatic text search-and-replace as someone types, but there are lots of things that would be nice (backspace to undo the replacement, a pop-up that requires a tab or enter to insert the replacement, etc....
I have this:
$(window).blur(function() {
setInterval(function() {
$.ajax({
type: "POST",
url: "imback.php",
data: {
mode: 'ajax',
getUpdates: 'auto',
},
success: function(msg){
document.title = msg + titleOrig;
...
Does anyone have experience with printing directly to a Photo ID Card printer in a web browser?
I have a web application that manages user data, photo, and so forth. I'd like to add a Print ID Card feature to it. The web application is a single page javascript application that talks to a RESTful web service via JSON. I'd like to display...
if (//some condition) {
//some code
} else {
//other code
}
or
if (//some condition) {
//some code
}
else {
//other code
}
...
Before I dive in to the jQuery/Sizzle source I thought i'd ask here about ways to speed the below method up.
This is a standard "Check All" checkbox scenario. A header cell (<thead><tr><th>) has a checkbox that when checked checks all other checkboxes in it's table's tbody that are in the same column.
This works:
// We want to check/u...
Hi everyone,
I'm in a bit of trouble and need help. I basically have a carousel (scrolling) type gallery with three images. You only see one image at a time, and to see the next image, you have to click the link that relates to that image or click on the current image itself to see the next image. This would make it scroll one image alo...
I recently installed Visual-Web-Developer 10 and open my old asp.net 3.5 solution in it
and converted it to asp.net 4 solution.
every thing is working fine exept one strange problem:
suddenly all chars like: ' or " in header script code become: ' or "
and this making all my javascript do not work and give error in all my solut...
I am on a linux server connecting to a webservice via PHP/Soap.
The problem is that a method is zipping the response via SharpZipLib. So all I get in return is a garbled string.
Does anyone know of a way to unzip this with PHP or JS?
Thanks!
Update:
This is the compressed test data that gets returned:
UEsDBC0AAAAIAI5TWz3XB/zi////...
If I do this-
alert(anchor);
I get this-
"[object HTMLLIElement]"
... ok, yep, it is the element I want. So I want to get that elements ID.
So I test it like this:
alert(anchor.attr("id"));
... but I don't get any alert, nothing. I must not be selecting an element. What am I doing wrong, what don't I understand?
...
I got a basic map running using google maps v3
Next features that I would like to add include:
draw line as road directions instead of direct point to point polyline
draw a circle 75 km circle around from a specific point
highlight the postal code of a specific point.
I Would appreciate people's thoughts on these topics
var geocode...
This may be a bit silly question, but I just started doing pretty things in jQuery and I suddenly wondered how to solve a problem that I never even bothered looking into without the help of frameworks.
Suppose we have two div elements:
<body>
<div id="lorem1" style="display:block; height:400px;">
Lorem ipsum...
</div>
...