|
Haha, sorry for you having to scroll to see the code, first time poster.
oQuery.Query = "$content "& strQuery & " "&_
"AND NOT #path *_admin* "&_
"AND NOT #path *images* "&_
"AND NOT #filename *.class "&_
"AND NOT #filename *.asa "&_
"AND NOT #filename *.css "&_
"AND NOT #filename *.js "&_
"AND NOT #filename _*.*"
Better?
I changed the @all to only search in the $content and sortBy hitcount achieved exactly what I wanted.
|
|
|
|
|
I am calling a method getDirectories() present in an Applet which returns a string value, am
calling this from the javascript. When I run this script from the Internet Explorer, the
getDirectories() returns “C:, D:” but when I am calling this method from the Firefox it
returns [Object Event] but I am expecting “C:, D:”. Can you please help me what should I do
to get the correct string value.
Thanks in Advance
Irsh
|
|
|
|
|
Link to the original post here[^]
To use an IMG tag without the src attribute?I mean what kind of assholes did they hire to write Opera? I've been wresting with various Opera idiosyncracies for three days now, and those are enough to drive someone to commit hara-kiri, although this particular issue here applies to Safari as well.
From what i know, a SPAN element is supposed to be nearly equal to a DIV , with the exception of the latter's paragraph breaks, although i realize that in practice it's not exactly the case. I've run into issues before where IE incorrectly applies height and width to span s, making them inadequate for the purpose i intended, but i've been able to use another method to accomplish the same thing, so it worked out okay. But this problem here involves the rendering (or more precisely, lack thereof) of a background image applied to the span via CSS. I've been looking for a fix for perhaps an hour or two, but then stumbled onto the solution by sheer accident, when i made a mistake of assigning the wrong class name to a different element, which was off by one character. With the same idea in mind i was able to use a malformed img tag to correct the problem i was having and it isn't an outrageously ugly hack, but considering that i try to keep my work 100% semantically correct, it's somewhat of an eyesore.
Roswell
"Angelinos -- excuse me. There will be civility today." Antonio VillaRaigosa City Mayor, Los Angeles, CA
|
|
|
|
|
You got the solutions over the original forum right?
|
|
|
|
|
RoswellNX wrote: To use an IMG tag without the src attribute?
No, that's really not correct at all. Both src and alt are required attributes, and should never be omitted.
Of course, most browsers will let you get away with omitting them, especially alt ... but still, you shouldn't.
Why, if i might ask, would you want to do such a thing anyway? IMG elements have some very odd rendering behaviors in most browsers, and to my knowledge can never be used as a container for text or anything else... so what's the point of using one with no src ?
----
Yes, but can you blame them for doing so if that's the only legal way they can hire programmers they want at the rate they can afford?-- Nish on sketchy hiring practices
|
|
|
|
|
I searched the google on "supermeta" , but i did not find any related subject.
Do you have a link on any article about "supermeta" tag ?
|
|
|
|
|
I was joking - there is no such thing. The point is, work on your content instead of looking for stupid tricks.
----
Yes, but can you blame them for doing so if that's the only legal way they can hire programmers they want at the rate they can afford?-- Nish on sketchy hiring practices
|
|
|
|
|
I'm asking about a third party control here because it's fairly well known, and its 01:10 here and I still have far to go. I'm trying to extract values from the inForm autogenerated editing controls on a telerik rad Grid. Despite setting a column's type to e.g. Int32 I still get exeptions because the DictionaryEntry's value is always a string. Any advice?
private void grdEmployees_UpdateCommand(object sender, GridCommandEventArgs e)
GridEditableItem editedItem = e.Item as GridEditableItem;
Hashtable values = new Hashtable();
e.Item.OwnerTableView.ExtractValuesFromItem(values, editedItem);
User usr = new User();
Type t = typeof(User);
foreach (DictionaryEntry field in values)
{
PropertyInfo prop = t.GetProperty(field.Key.ToString());
if (prop != null)
prop.SetValue(usr, field.Value, null);
}
"A little learning is a dangerous thing; drink deep, or taste not the Pierian spring: there shallow draughts intoxicate the brain, and drinking largely sobers us again.", by Alexander Pope
My New Blog
|
|
|
|
|
Hi there
I've been working on this problem for ages now and it makes no sense. I have a create user wizard and wish to put variable within it, the problem is that i cannot for some reason see these variables from the code behind file. Below is a basic example of the aspx file:
<asp:CreateUserWizard runat="server" ID="CreateUserWizard1" AutoGeneratePassword="False"
ContinueDestinationPageUrl="../GeneralForms/Default.aspx" FinishDestinationPageUrl="../GeneralForms/Default.aspx">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<b><asp:textbox runat="server" id="txtTest"/></b>
</ContentTemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</CreateUserWizard>
Now the bolded text box for some reason cannot be seen by this web pages code behind file. Does anyone know why or have a solution.
Thank you so much in advance for any help. I'm going CrAzY!!
Devin
|
|
|
|
|
Hey Devin,
I faced the same problem before. Sometimes this happened when The asp Control is placed outside the tag. Check your code and see if that is the case.
Cheers,
|
|
|
|
|
I am trying to get a picture out of Source of a picture in a Flash gallery.
http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg
I tried alot of different ways but couldn't get it. If you know could you please post?
Thanks for your time.
-- modified at 13:29 Tuesday 26th June, 2007
|
|
|
|
|
klutez123 wrote: http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg
Throw something like javascript:alert(unescape("http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg")) into the address bar and you'll get what you want...
----
Yes, but can you blame them for doing so if that's the only legal way they can hire programmers they want at the rate they can afford?-- Nish on sketchy hiring practices
|
|
|
|
|
klutez123 wrote: http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg
It is in URLEncoded format. Call Javascript unescape("http%3A%2F%2Fwww%2Eprintroom%2Ecom%2Fpreview%5Flarge12%2F64249086%5Flt%5F%2Ejpg")
|
|
|
|
|
Hi to all
My web site stores all the page content(HTML Format stored in a database via a wysiwyg-editor) I am busy developing a technique where if someone (like a admin using the backend) puts in certain keywords Eg. @#ContactControl#@ in the html code(that gets stored on the database)the custom control shows up in the frontend if the string gets recogised by the string processing method. odes anyone have some expert knowledge on how to best use this technique ?
I am thinking a counter for every occurance of @# then to daclare a array of HTMLGenericControls that will be added before and after the control keywords(that will become the control) controls itself.
Eg <p> paragraph before </p>@#Mail#@ <p> paragraph after </p>
Will create 2 HTMLGeneric controls [array] in the codebehind and one mailControl.
then I will add the code to the content panel as follow
panel1.add(genCntr[0]);
panel1.add(mailer);
panel1.add(genCntr[1]);
thanx in advance
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
My manager asked me "Can we put the web site keywords in the "Super Meta" tags" ?
I did not know how to answer, because i did not hear about something called "Super Meta" tags?
Do anyone know about it ??
|
|
|
|
|
Well, as you probably know, meta tags are used to simulate headers and otherwise provide auxiliary information about a page. One type of meta tag, the keywords tag, looks like this:
<meta name="keywords" content="bacon, eggs, spam, spam, spam, spam"> search engines once used these keywords in categorizing pages, but their use by spammers and SEOs quickly made them nearly useless - today's search engines put little or no value on their content, and may ignore them entirely.
This is where Super meta tags come in. Unlike ordinary Meta tags, Super meta tags go in the body of the HTML document, and look like this:
<h1 class="supermeta">Bacon! Eggs! Useful information regarding weightloss pills!</h1> Obviously, this has a lot more "punch" to it than boring old meta tags, due largely to the use of exclamation points between keywords...
----
Yes, but can you blame them for doing so if that's the only legal way they can hire programmers they want at the rate they can afford?-- Nish on sketchy hiring practices
|
|
|
|
|
Hello All ,
I red all Google books and i am working in search engines optimization since 3 years, i never heard about the Super meta tags.
The super meta tags depends on what you fill the content of these tags, you can make your meta tags super by filling them in the right way with the right contents, there is nothing called Super Meta Tags in search engines.
what you put here is one of the Google weighting factors, Google gives the text in the bold (headers) more weight than the other normal text.
finally ... meta tags should not be visible to the user, it is just for the crawler and what you put here is visible.
I hope that i am helping programmers
|
|
|
|
|
Luay.Essa wrote: Super Meta
I don't think there is anything like Super Meta. Your manager would have actually emphasized the META tag and given SUPER as an adjective to it.
Your best bet to optimize using META tag is a few SEO (Search Engine Optimization) websites.
|
|
|
|
|
I have a problem running pages on my PC at work.I havent tried running them from another PC, but each time I try running scripts it doesnt.The page will run but the script will not.
I don knw whether it my configurations or something Im doing wrong.Ive coded a few pages and tried running them with no luck.I downloaded pages from the net with code and the code doesnt run either.
What could be wrong??
kagiso
|
|
|
|
|
What kind of "scripts"? Is it Javascript code that you mean?
Have you tried something simple, like this?
<html><br />
<head><title>title</title></head><br />
<body onload="alert('Hello world!');"><br />
body<br />
</body><br />
</html>
---
single minded; short sighted; long gone;
|
|
|
|
|
function CheckEmail()
{
check=1;
var emailtext=document.getElementById('emailtext');
var email = emailtext.value;
var AtPos = email.indexOf("@");
var StopPos = email.lastIndexOf(".");
if ((email == "")||(AtPos == -1 || StopPos == -1)||(StopPos < AtPos)||(StopPos - AtPos == 1)||(AtPos == 0) )
{
Message = "Not a valid Email address" ;
check=0;
}
if(Message=="")
{
mailerror.style.display="none";
}
else if(Message !="")
{
mailerror.style.display="";
}
}
mozilla is showing error in line
var email = emailtext.value;
can anyone tell me the proper way to write this line which mozilla supports.
hiiiiii
|
|
|
|
|
This might be a case-sensitivity issue, since Mozilla is a lot more fussy that IE. Try changing the line to
var email = emailText.value;
To match the name of the textbox
|
|
|
|
|
Thanks It is working now..
It was a headache for me in fact.
hiiiiii
|
|
|
|
|
hkchauhan wrote: var email = emailtext.value;
How about
var email = document.getElementById("emailtext").value;
?
|
|
|
|
|
again it is not working in mozilla
var search = location.search;
search = search.replace(/\?/,'');
var searchAttributes = search.split('&');
for(var no=0;no<searchattributes.length;no++)
{
="" var="" items="searchAttributes[no].split('=');
" eval("var="" "+items[0]+"=""+items[1]+"" ;");
=""
="" }
="" con="items[1];
" if(con="="true")
" myerror.style.display="" ;
="" }
if(con="="errorA")
" myerror1.style.display="" if="" (con="="false")
"
i="" am="" passing="" value="" in="" querystring="" i.e.="" true="" &="" errora=""
<div="" class="ForumSig">hiiiiii
|
|
|
|