Script adds id for block, gives:
<div id="some">Text</div>
After that page should jump for that id, without animation, just like we have target #some on current page link.
How to do this?
Thanks.
Hello friends,
How can i prevent user to enter any url or link in contact form text area, i have tried it with this but its not working -
if (!isset($_POST['submit']) && preg_match_all('/<a.*>.*<\/a>/', $_POST['query']))
{
echo "<h1 style='color:red;'>HTML Tag Not allowed </h1>";
}
else {
//sendmail
}
Please help me
I have a Customer class which has a representative field....this field is initially blank but when the user opens up the details page of the chosen customer, they'll be given the open of representing this customer by clicking on a link. The template layout I was thinking of is this:
<strong>Representative: </strong>
{% if customer.representative %}
{{ customer.representative }}
{% else %}
<a href="{% url representCustomer customer.id %}">Represent this customer.</a>
{% endif %}
All that remains is the view to effect this...this is where I'm stuck.
We need to provide a way to reset password for users who are using our website. The typical way is to send email to the user and ask to click on the link to reset.
The issue is that we don't want to run a mail server just for the purpose of resetting password. Is there other clever way of reseting password without having to mail the user?
I need to include an image within the <a> tag of an ActionLink. What is the best way to do this?
The final rendered link should look like this,
<a href="/Home/Test"><img src="test.jpg" />Test</a>
Hello,
I am developing facebook/myspace content share buttons. The Facebook link takes you to a URL on my website, but I need to pass additional parameters to my URL along with the parameters passed to facebook. Here's my example:
http://www.facebook.com/share.php?t=MyCompany&u=http://foobar.com/test7.php?Share=161&FbShare=Facebook28
Do I need to escape something inside the "u" parameter?
I need to trace the ipadress (where my website access)for optional loading of my theme.Explanation:
I want to add a share link to twitter and facebok in my application.i think in some countries like china;twitter blocked.Thats why i need to check from where my site is accessing.otherwise which affecting my site's performance.How can we solve this problem in PHP.If anybody have experience please help me..
I've lost link to free file browser which can be integrated with ckeditor. I'm looking for it for about 5 hours and no luck, so could you help ? Problem is that I remeber nothing except page had red circle favicon with white text, name was with "net" and "4" . I'll be thankful for help
I want to link the example with liba.so, and also the example is NOT using anything inside the liba.so ...
armlink --userlibpath /mylib/lib liba.so --fpic --shared -o example main.o demo.o
So finally I got nothing from: readelf -d example | grep NEEDED, it seems that armlink do some optimization to remove the linked library which is not really used by the "example" ? If I want to let the liba.so be always linked into example, what need I do with armlink options ?
Any information is very appreciated ;)
My gridview has link type column but am unable to edit it. how to edit such type of cell.
Few more question i have
i want to set checked to true for all rows in checkbox column. Also i want to set default value for combo box column
Thanks
I am making websites I refer to from my site load up in a frame (similar to google images). But I also want to give users the ability to break out of that frame. Like with google image's "Remove Frame" link at the bottom right corner of their frame. How can I do this possiblyusing Javascript?
HKEY CURRENT USER \software \microsoft\ windowsNT \CurrentVersion\ AppCompatFlags "application path" = RUNASXP3
I want to create an application which runs in default XP mode on windows 7 when i run the application so, i want to write into the registry as in the link above.
I am building the application in VC++ 2010, i want to write into the above registry through the program, so that when i run the program it runs in XP mode. How to do this..?
I'm getting a fairly long and confusing link error, and would love it if I could just paste it into some textbox on some website and have the names un-mangled for me.
Does anyone know of such a service?
i have an asp hyperlink i want to link it to a .doc file found on a shared folder.
i was able to do this in internet explorer but not in firefox:
my code:
hlc.NavigateUrl = @"file:\\direct\upload\file.doc";
when i write
<link rel="shortcut icon" href="http://localhost/kino/img/clapperboard-icon.ico">
it doesn't show an icon in IE? works fine in other browsers.
could you tell me why? thanks
I need to work on C++ project on my windows machine. My project will consist of various classes(.h and .cpp) as well as the startup file to start the application. The preliminary design is simple but the application has the potential to gain complexity as time goes by. What I need here is ideas to set up the C++ project compiler/IDE/Makefile etc..etc. as well as some standard tools besides Visual C++ to compile/build/link projects such as these on a Windows OS.
Thanks
In IE the tooltip (title attribute) when you hold over an a-tag disappear after a while. Can I somehow control for long it is shown? Or is it up to the browser to decide?
<a title="tooltip text">link</a>
On my master page I have:
<link rel="stylesheet" href="css/default.css" />
I also have a page "blog.aspx" in the root directory.
I have the rule:
<rewrite url="~/blog/blog.aspx" to="~/blog.aspx" />
My questions are:
Am I meant to make all my links in my site point to blog/blog.aspx now instead of just blog.aspx where it is physically located
How is best to cope with the paths of the stylesheets etc now being messed up because they are one dir up?
desired tree output should be like picture showed in below website.
[web]http://www.all-science-fair-projects.com/science_fair_projects_encyclopedia/upload/6/6d/Binary_search_tree.png
can I take output like that. If I can, how?
(sorry, because I cannot sketch the graph in question task so I must give link )
(language is gcc)(platform is linux)
please I can't able to install the silverlight on vs2008.please tell me how to install
silverlight on vs2008. give me step by step description otherwise any most preferable link
for that I am going in correct way.& how the controls are to be in vs2008.
& also me give a beginner example for that i can start to teach the silvelight.
please!!!!!!
hi i installed vmware workstation 7.0 in windows,and it working well.i installed mac os 10.4.8 in it as a guest it is alo working well,but while installin mac os 10.6.2 it dont installed and shows an error as "invalid front-side bus freqency 66000000 hz. disablin the cpu." please help me how to solve this and please suggest any link to easyly understand installation if mac os 10.6.2
How to convert the existing flash site into mobile version existing site in form of the cakephp frame work. We thought that html ,css,php,javascript may work all mobiles.We dont know exactly. Please tell us how many possible way to develop existing site into mobile version and also need to detect the from which browser the request is coming whether mobile browser or pc browser.
The existing site link is :This site convert into mobile version
I have the following code which loads and html file into a webview
- (void)awakeFromNib{
NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];
NSString *htmlPath = [resourcesPath stringByAppendingString:@"/main.html"];
[[self mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}
How would i dynamically load a css file (in the most efficient manner) as it does not suit to have the css file link in the html file
To learn from good examples, what are the best open source Google App Engine applications out there?
I don't care if it is Java or Python based.
Please one app per answer. Feel free to add a link to the live app (if there is) and to the project page.