i want to create a web chat/forum application that is google wave alike.
when one person is typing a new post or embed an image in it other persons are seeing this live.
i have read about different techniques and i feel that long polling and iframe are the most talked about.
so, which one should i use for this application and why? i'v...
I'm trying to redirect to another page by calling an action in controller with a specific parameter. I'm trying to use this line:
window.open('<%= Url.Action("Report", "Survey", new { id = ' + selectedRow + ' } ) %>');
But I couldn't make it work; it gives the following error:
CS1012: Too many characters in character literal.
C...
Thanks to Bishiboosh and fmsf. As
suggested, we're going to do it
through XSL which looks more obvious
answer of the problem (for detail
please read below question).
We'd have to create an XSL which will
search a keyword and match with node
name/value, attribute name/value etc.
everything in XML.
XML
<?xml ver...
Following are some of the "weird" snippets that are on the Google homepage..(google.com/ncr that is)
({"s":{"#":[{"h":"ad","g":["Google","E4hE342CDKOgAFYm15AW","1",0,0,1]},{"h":"p","g":["ghead","
,0]},{"h":"p","g":["footer","
",0]},{"h":"p","g":["body","
",0]},{"h":"p","g":["xjsi","
And then there's this:
<script>if(google.y)googl...
I have two different application having different domains, want to make a site where its show both sites in a single page.[Without using Iframe].
...
the script is not working:
please find the reason n remedy?
function validate() {
if(document.complain.complain.value == '' || document.complain.complain_subject.value == ''){
alert("Hey! you can't left a field blank!");
return false;
}
else if(document.complain.complain.length >100) {
...
alert(dateObj) gives Wed Dec 30 2009 00:00:00 GMT+0800
How to get date in format 2009/12/30?
...
Hi,
I have webpage1.html which has a hyperlink whose href="some/javascript/function/outputLink()"
Now, using curl (or any other method in php) how do I deduce the hyperlink (of http:// format) from the javascript function() so that I can go to next page.
Thanks
...
Hi Techies@StackOverFlow,
i am researching on a logic, by which i can select a text in a single right mouse click. What I want to say is that , I want to implement, the double click text selection, but in a other way that is in single click and right click.
For example if you double click on the text displaying anywhere on this web, the...
I load an KML file into a google map object using the following code:
map = new GMap2(document.getElementById("map_canvas"));
geoXml = new GGeoXml(kml);
GEvent.addListener(geoXml, "load", function() {
geoXml.gotoDefaultViewport(map);
// I would like to read the KML contents here
});
map.addOverlay(geoXml);
// ...
I would like...
This is my label i want to display if the user have left out field before clicking the button. What am i doing wrong because nothing is happening when I click the button...
<asp:Label ID="lblError" runat="server"
Text="* Please complete all mandatory fields" style="display: none;" >
</asp:Label>
This is my function i call when i clic...
Hey,
I want to match a string to make sure it contains only letters.
I've got this and it works just fine:
var onlyLetters = /^[a-zA-Z]$/.test(myString);
BUT
Since I speak another language too, I need to allow all letters, not just A-Z. Also for eg
é ü ö ê å ø
does anyone know if there is a global 'alpha' term that includes all ...
Hay how do i covert a negative float (like -4.00) to a positive? (like 4.00).
Thanks
...
Hello, I'm having trouble with some Javascript, and hopefully someone may be able to help!
First, here is the code:
function Client_Selected() {
var temp = $("input:radio[name='selected_client']:checked").val();
var f_input_name = "fname_" + temp;
var l_input_name = "lname_" + temp;
var first = $("input[name='"+f_inp...
The string can be got by getFullYear and so on.
Can it be done reversely?
...
please tell me the html syntax with example so that when i create a hyperlinked image.i get a comment generated beside it that what does this link will do?
...
With the increasing popularity of libraries like jQuery that make Javascript a lot more friendly, I see a tendency to delegate parts of the layouts to the client side: things like coloring of table rows (from simple things up to tools like flexigrid), fixes for cross browser CSS incompatibilities, syntax highlighting and so on.
Is it no...
My problem is that I need to dynamically include a javascript file from another external javascript file. I'm trying to do it by using this function:
function addCustomScriptTag(url) {
var scriptTag=document.createElement('script');
scriptTag.type = 'text/javascript';
scriptTag.src=url;
var myElement = document....
Hay guys, i have 2 floats, which both comes from input boxes.
I need to compare these 2 floats, if one is negative and one is positive thrown an error. If they're both positive, or both negative, thats fine.
Any ideas?
Thanks
...
I want to manipulate a javascript array in PHP. Is it possible to do something like this?
$.ajax({
type: "POST",
url: "tourFinderFunctions.php",
data: "activitiesArray="+activities,
success: function() {
$("#lengthQuestion").fadeOut('slow');
}
});
Activities is a sing...