Normally, we get first value that way:
$("#color option:first").val()
But I need something like
$(this.id option:first).val()
and of course it doesn't work.
The site im working on is an Ajax enabled ASP.net/C# project and i have a URL like this:
http://localhost:2531/(S(lfcvqc55wkabpp55o1x4pvq5))/Logon.aspx
How do you get rid of the (S(lfcvqc55wkabpp55o1x4pvq5)) portion of the URL? I have a feeling its a web.config parameter however I'm not really sure what you call this part, GUID, Session ID?
I've got a regex for detecting links that works pretty well for urls of the form http://example.com, http://www.example.com etc but not for www.example.com
I am trying to extend what i have so that www.foo.com also gets matched without breaking previous functionality.
I tried this:
/\(?\b((http|https|ftp):\/\/|)(www\.)[-A-Za-z0-9+&@#\/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#\/%=~_()|]/
but this only works when www is present and doesn't work e.g. for http://example.com ...
I got the group names by using
ContactList clist=(ContactList)pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
String[] s=clist.getCategories();
and now i want the groupid like i am getting the contact id using Contact.uid
I have the following function that I only want to run inside a specific div with the id of imgWrapper.
I have tried a few things with parent but I cannot seem to figure this out.
<script type="text/javascript" language="javascript">
$(document).ready(
function () {
$("img").each(function () {
var src = $(this).attr("src");
if (src.substring(0, 1) == "/")
$(this).attr("src", "http://serverName.com/" + src.substring(1))
});
}
);
</script>
Hello, I am trying to use RE to match a changing ID and extract it. I am having some bother getting it working. The String is:
m = 'Some Text That exists version 1.0.41.476 Fri Jun 4 16:50:56 EDT 2010'
The code I have tried so far is:
r = re.compile(r'(s*\s*)(\S+)')
m = m.match(r)
Can anyone help extract this string.
Thanks
Table A
tableAID
tableBID
grade
Table B
tableBID
name
description
Table A links to Table b from the tableBID found in both tables.
If I want to find the row in Table A, which has the highest grade, for each row in Table B, I would write my query like this:
select max(grade) from TableA group by tableBID
However, I don't just want the grade, I want the grade plus id of that row.
Hello,
Do you know how I can get the CGWindow Id of any focussed window (belonging or not to the current application) ?
Thanks in advance for your help :)
Regards,
Given an HTML string like:
<span class="findme" id="31313131313">The Goods</span>
What kind of REGEX in Coldfusion would return just (if it's even possible?): 31313131313
Thanks!
I am a jQuery noobie, and have been trying to add a script to change the id of a div onClick.
Here is a jsfiddle example.
$(function accept() {
$("div:scrollwrap").attr('scrollwrap','highlight');
});?
Thanks :)
I have the following snippet;
$("a.lightbox_image").each(function () {
$(this).fancybox({
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'speedIn': 600,
'speedOut': 200,
'content': $('#lightbox_image_content_'+this.id.replace('lightbox_image_','')).html()
});
});
But the above does not get the content from the element referenced to in the content property - what am i doing wrong?
JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something?
input#search_form:expression {
///...
}
When should I consider representing the table-id columns as classes?
When should I consider storing data as comma-separated values in a column in a DB table rather than storing them in different columns?
Hi,
I want to change my asp.net form's Id ="aspnetForm" to custom name (I can't change it as its a child page and .NET would enforce 'aspnetForm' name.). I am trying to do this in Jquery .ready event but no luck. I am wondering now whether it's even possible to do that?
If not what are other possible ways..
Thanks!!
Greetings,
I have created a custom membership provider to make it possible to authenticate users on my application. How can i retrieve current user id in controller? I need this to get some data from database for this user.
I have a table example you can see below
ID Name Value
3 NameOne ValueOne
7 NameTwo ValueTwo
10 NameThree ValueThree
I need to select with Linq to Entity and get results as you can see in example below:
ItemID ItemName
1 NameOne
2 NameTwo
3 NameThree
I import oourafft.h and oourafft.m class, but get strange error while ooura initialize.
OouraFFT * myFFT = [OouraFFT initForSignalsOfLength:1024 numberOfWindows:10];
OouraFFT may not respond to +initForSignalsOfLength: numberOfWindows
Messages without matching method signature will be assumed to return 'id' and accept argument - Warning
I think that it some kind of error import .h file
Hi i have div ,
<div id=refer_friends><input type='text' name='refer1'>
<input type='text' name='refer2'>
<input type='text' name='refer3'></div>
How to check, how many input element between DIV refer_friend ,
Using jquery
For a long time I've used OpenID delegation on my site:
http://example.org/ delegated to: http://example.openid-provider.com/, so I logged into OpenID-consuming sites using the former as ID.
Recently I added www. to my site's canonical domain so http://example.org/ now redirects to http://www.example.org/.
Should I be able to continue logging into existing OpenID accounts using http://example.org/?
StackExchange sites say "yes". I can use either URL.
At least one other doesn't recognize my existing account.
Who's "right" (per spec) and is there anything I can fix on my end?
When linking pages, does google give higher value to href="http://www.mydomain.com" than href="/"?
I am wondering because I have heard that (for SEO) it is better to provide the full http address when linking to the sites homepage.
As I thought about it, I wondered why that would be. Would google really assign higher value to href="http://www.mydomain.com" instead of href="/"? They both mean the same thing.
Do you guys know or have any resources on this?