based on this post link text
i came up with a regex for javascript
\b(([\w-]+:\/\/?|[\w\d]+[.])?[^\s()<>]+[.](?:\([\w\d]+\)|([^`!()\[\]{};:'".,<>?«»“”‘’\s]|\/)))
this one matches urls like
http://google.com
http://www.google.com
google.com
and fail for
google
but when i used japanese characters like
功功.jp
...
I'm troubleshooting a weird bug with a web app prototype and knowing when, precisely, Firefox autofills / autocompletes form fields would be useful. I have a small specialized audience and only need to target Firefox 3.6+. For this question, there is no server interaction beyond initial page load.
This question is just about the order o...
Hello All,
I am developing a user control for SharePoint in Visual Studio 2005. I make core usage of javascript in my ascx. Also, I have an aspx page in my project which defines the settings for the user control.
I want to access all the text from resx file using Javascript in the ascx and also in the aspx page. I am trying to place a ...
I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you ...
I got some idea from a C# related thread, but I need it in Javascript. I am try all sorts of things, it doesn't seem to work.
name.replace(/[A-Z]/g, / $&/);
What I am trying to do is make:
FirstName
with spaces:
First Name
But what I get is:
/ F/irst/ N/ame
Any ideas would be much appreciated.
...
I'm having a problem where the Facebook JavaScript SDK isn't setting cookies on some machines, so my backend validation fails when trying to verify the cookie using my app's secret value.
I've got a demo app; the important files are:
app.rb
demo.js
The client uses the Facebook JavaScript API to log the user in and get their details,...
Hi-
I'm developing an HTML/Javascript mobile web application using Dashcode. Normally I wouldn't use such WYSIWYG stuff, but I've found it a very rapid development process.
Unfortunately it seems like I can't get it to run on Android's browser currently. The main display loads and all the correct data is pulled from web services, but y...
Hey Guys
Anybody knows a Editor where i can develop my JS directly in the Browser with a js based Editor?
It would be nice if the code completion is customizable so that you can add own objects and methods, possibly documentation for each method / object.
Code completion is not required for the objects that come with javascript (like w...
I have the following javascript
function hide(id)
{
var ele = document.getElementById(id);
if ((ele.style.display == 'none') || (ele.style.display == '')) {
try{
ele.style.display = 'table-row';
}
catch (e)
{
ele.style.display='block';
}}
else {ele.style.display = 'none';}
}
which works i...
Hello!
I'm coding a website that involves storing very simple data, just a very long list of names with no additional data, on the server. As this data is so simple, I don't really want to use MySQL (it would be a bit too clunky) so I'm asking what's the best way to store very simple data on the server.
I definitely would favour speed ...
Hi,
I'm using the:
console.log()
method to log messages to firefox (3.6.6)/firebug while working on my webapp. When I view the app locally, it works fine, log messages come up ok. When I push my app up to my live server and view the page, I get lots of 'console not defined' errors.
I am not quite certain how the console object was e...
Nowdays, i create a .js file with a lot of functions and then I link it to my html pages. That's working but I want to know what's the best way (good practices) to insert js in my pages and avoid conflicts with scope...
Thank you.
...
I'm currently building a corporate website using YUI. I have a Silverlight component left from a previous project. It's functionality is needed. Since this current project must support Linux I'm thinking of recreating it using Javascript.
Using Moonlight would be an option - but the component relies on a few November 2009 Silverlight To...
I have a request to enable some links on a web page for PRINT and SAVE.
Historically I've always avoided those as in the past they weren't supported in all browsers and OSes and, well, I also found them annoying as a user. I tended to opt for 'print friendly' functionality or, barring that, just proper print CSS.
That said, I'm being a...
I have a few columns that are very long and i want to show all of the content so i want to setup jqgrid to have the height of each row able to show multiple lines of text in one cell which word wraps
is this possible
...
I'm developing an extension that requires to set focus to the address bar at some point. I've been trying to RTFM, but the FM is so hard to read!
Does anyone know of any way to set focus to the address bar from within a firefox extension?
TIA.
...
Hi
Anybody have an example of treeview inside combobox using jquery or javascript ,please let me know
thanks
...
I am working on form and I am looking for a free calendar/date/timestamp app that i can include in my form. basically, in the input text, i want users to click on the calendar icon and pick a date and a time stamp. that value should populate in the input text.
my next question is, in my mysql db, i am calling this field as "datetime", s...
I'm working on creating a basic RPG game engine prototype using JavaScript and canvas. I'm still working out some design specs on paper, and I've hit a bit of a problem I'm not quite sure how to tackle.
I will have a Character object that will have an array of Attribute objects. Attributes will look something like this:
function(name...
Whats the best approach for preventing errors when console.log calls have been left in JavaScript and it is executed on Browsers without a console or with console deactivated. Is there a way it can be automatically overridden to become a javascript alert for example?
...