Image files come with description properties like title, subject and keyword (summary tab). How do I "get" these properties in PHP? is there a function that allows me to the same in Javascript?
...
I have this document.getElementsByTagName('input') to get all the <input> elements on the page. will this result in an array that I can put a for loop through?
...
Hello,
I want to write a script which adds in a string a backslash () everytime it finds a quotation marks or \r. It works but for " and ', but I don't know how to write it for \r. Could anyone help me? THANKS
<script type="text/javascript">
var test="Let\'s test if this \"works\" properly";
var escapedString = test.replace(/(['"])/g, ...
Hi,
I am looking for
if(condion)
{
}
elseif()
{
}
else
{
}
Is this supported in JQuery. I have seen in some place but cannot get it worked in my SP designer.
Any right directions please?
Hari
...
I'm trying to do a form submit to my controller through jQuery Ajax. The following code works for the most part, however, the ThreadId parameter does not get passed. If I call the controller directly without using jQuery, it gets passed, but when using jquery, I don't see the ThreadId after form.serialize(). WHat would be the easiest ...
I have a <input> element that I want to change the background color on. The code I am currently using is this (but it is not working):
var allBlanksLoc = document.getElementById('text');
var allBlanks = allBlanksLoc.getElementsByTagName('input');
for(i=0; i<allBlanks.length; i++) {
var currentBlank = allBlanks[i];
var wordNum = blanks...
Hello. I'm a beginner at jQuery and I'm trying to insert a Facebook like button through the jQuery document.ready function.
My external Javascript file (loaded after the jQuery script) has the following code:
$(document).ready(function(){
if ($('#fb_btn').length) {
var fb_code = "";
fb_code += "<iframe src=\"http://www.facebook.c...
Hey guys,
I'm new to jQuery/js and having a hard time figuring this out.
There are two fields in a form of mine i want to do some calculations with, what i tried is this:
jQuery.fn.calculateit = function(){
var one = $("#one").val();
var two = $("#two").val();
//total
var total = one + two;
$("#total").text(total)...
My problem is best explained with examples:
This works:
$(startContainer).parents().each(function(index, parentNode) {
if (parentNode.isSameNode(commonContainer)) return false;
console.log("start vert struc: " + parentNode.nodeName);
});
While, this does not work:
$(startContainer).parentsUntil(commonContainer).each(function...
I have a variable in a function that I want to be accessible by other functions. How would you do that?
...
I need to send a file via HTTP Post (a form) to more than one destination via a single click.
The form has a submit button
<input type="submit" id="button1" name="submit" value="upload file">
The action attribute and various different hidden fields that are needed, are set via JavaScript.
After button1 is clicked the file is sent t...
I have a form in my HTML with field.
I'd like to show the file selection window when the user clicks somewhere else (for example, an image on other part of the screen). The reason I want to do this is that I have a form with many fields, posting to some action "x", and the file selection form on other part of screen, submiting to actio...
ok, how can I transform a html canvas from a square to a trapezoid?
so
___
| |
|___|
to
___
/___\
...
Hello friends,
I am coming up with a web application which will be primarily based on PHP. I would like to know some of the best practices and technologies that I can make use of to come out with the app as fast as possible. My team will be working remotely, so I want to know the best ways of collaborating through web resources too. I'm ...
I'm looking for ways to make developing big server sided Javascript (I'm working with Node.js) projects a whole lot easier.
Basically, the problems I'm facing with Javascript is that I'm not being warned when I make a syntax error, or when I mix different kinds of object types in the same arrays/variables etc.
I was using haXe to solve...
<body>
<script type="text/javascript">
function name(firstname)
{
alert("Your firstname: " + firstname);
}
</script>
<form>
<input type="button" value="Do it" onclick="name('aaron')"/>
</form>
</body>
This will not work in Chrome/IE8. IE8 states Object doesn't support this action. It has to do with the name o...
I need a little bit of help here. First off, I am not sure if i should use the .ajax function or the .load function. I want to grab a PHP file on the server and just load the page into a DIV container. How could i go about this?
EDIT:
Thankyou for the help. Now I am running into another problem. Here is the code i am using.
...
Specifically, I am trying to detect Windows XP users as they are not compatible with my software.
Is there a way to detect with at least 70% or higher accuracy?
...
Code:
$(".box-collapse").live("click",function(){
if(updating()) return false;
var b = $(this).parent().parent();
b.find(".album-div").stop(true,false).slideToggle();
$.ajax({
url: addNonce($(this).attr("href")),
success:function(data){
c = b.attr("id");
var resp = $('<div />').htm...
Hello,
How can I add a class or ID to a Google Maps API V3 marker? I want to be able to access the markers using jQuery.
EDIT: Hi clarkf, thanks for the response. Using Firebug I'm not able to see those classes when inspecting my map but I did notice there are two divs. One for the icon and one for the button.
What I am trying to do i...