|
whats this? Seems only advice in free Thanks man
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi,
I designed a website of 3(Left side menu, middle text and right some links) colom in plain HTML and css. Site is having almost 10 pages.
If I am to change the link on third colom I have to update the link in all 10 pages.
Is there any good idea that single change will reflect to all pages?
|
|
|
|
|
Dreamweaver templates are the answer my friend.
|
|
|
|
|
|
|
Yes this is done easily, if the site is dynamic make them includes, if its not and basic HTML use the Dreamweaver library tool and let it do all your work for you.
|
|
|
|
|
i have written ajax code and save as ajx.js and i have written my asp code and saved as addwork.asp my problem is
when i click on image go then it should insert records into database without reloading the page but it reloads the page so please help me here is my code below
addwork.asp code below
<!--#include file="common.asp"-->
<!--#include file="headers.asp"-->
<script type="text/javascript" src="ajx.js"></script>
<%
q=request("q")
CheckAdminLogin()
OpenDataBase conn
'if request("flag")=1 then
'compl=0 means task is pending
'compl=1 means task is completed
'compl=2 means task is cancelled
completed=0
uname=request("uname")
txt=request("txt")
dat=now
if uname="" then er=er & "Title cannot be blank"
if txt="" then er=er & "Work description cannot be blank"
if er="" then
sql="insert into wrk(titles,desck,datss,usernames,userid,completed) values('" & cstr(uname) & "','" & cstr(txt) & "','" & cstr(dat) & "','" & session("adminname") & "'," & session("userid") & "," & completed & ")"
conn.execute sql
response.write "<font size=4 color=green>work description Submitted sucessfully</font>"
else
response.write "<font color='#FF0000' size='+1'>" & er & "</font>"
end if
'end if
%>
<form action="addwork.asp" method="post">
<table>
<tr>
<td>
<font size="+1">
Title</font>
</td>
<td><input type="text" name="uname"></td>
</tr>
<tr>
<td><font size="+1">Work</font></td>
<td>
<textarea name="txt" rows="20" cols="35"></textarea>
</td>
</tr>
<tr>
<td></td>
<td><input type="hidden" name="flag" value="1">
<!--<input type="submit" name="submit" value="submit" onClick="showHint(this.value)">-->
<INPUT TYPE="image" SRC="submit_button.gif" HEIGHT="30" WIDTH="173" BORDER="0" ALT="Submit Form" onClick="showHint(this.value)">
<span id="txthint"></span>
</td>
</tr>
</table>
</form>
addwork.asp code ends here
now ajx.js code starts below
var xmlhttp;
function showHint()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Your browser does not support XMLHTTP!");
return;
}
var uname=document.getElementById("uname").value;
var txt=document.getElementById("txt").value;
var url="addwork.asp";
url=url+"?uname="+uname+"?txt="+txt;
//url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function stateChanged()
{
if (xmlhttp.readyState==4)
{
document.getElementById("txthint").innerHTML="thank you"
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject)
{
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlhttp;
}
|
|
|
|
|
You would have to stop the default action of the element. You can achieve that by returning a false right after the showHint function. Your code should look like the following:
<INPUT TYPE="image" SRC="submit_button.gif" HEIGHT="30" WIDTH="173" BORDER="0" ALT="Submit Form" onClick="showHint(this.value); return false;">
|
|
|
|
|
Your javascript should look more like this ...
var xmlhttp = (function () {
if (window.XMLHttpRequest) { return new window.XMLHttpRequest(); }
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) {return null; }
})();
function showHint(){
if (xmlhttp==null){
alert ("Your browser does not support XMLHTTP!");
return false;
}
frm=document.forms[0];
var url="addwork.asp?uname="+frm.uname.value+
"&txt="+frm.txt.value;
xmlhttp.open('GET',url,true);
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.send(null);
}
function stateChanged(){
if (xmlhttp.readyState==4){
document.getElementById("txthint").innerHTML="thank you"
}
}
and as Jafhar has said ...
<INPUT TYPE="image" SRC="submit_button.gif" HEIGHT="30" WIDTH="173" BORDER="0" ALT="Submit Form"
onClick="showHint();return false">
modified on Monday, March 22, 2010 4:43 PM
|
|
|
|
|
I am planning to generate 15 or more reports in sql server report server 2008. I want to Tie separate sql server reports and tie them together with a table of contents in a c#.net 2008 possiblu using a list viewer control or some other control. I will then then want to export these reports into an electronic format to email to users.
Can I setup separate sql server report service files (rdls) and have the C#.NET application tie these files together? I am hoping I can export the reports to Word.
Can you give me suggestions on how to accomplish this task?
|
|
|
|
|
Do not spam the forums. Pick one and stick with it. Doing otherwise will just get you ignored.
This has nothing to do with Web Development.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
1) Table of contents structure is avaialble from within a SSRS report
2) Don't feed the bears. The OP does not deserve to be replied to for violating the rules and edicate of the forums.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
Is this possible to create charts(Eg: Scatter chart) using the plugin
"Ruby processing"?
Anybody have idea plz?
Thanks & Regards,
Periyasamy.R
|
|
|
|
|
Dear All,
HTTP is a request-response protocol and when the browser sends a request, the Server sends the response. At first the browser sends the GET request and the response is HTTP 200 OK along with HTTP headers and HTML content for the base page.
Then the browser parses the base HTML and makes GET requests for any content it needs to render the page (a separate GET for each object and the response is the object).
Now my intention is to write a program that can store the whole page by only taking the URL of the web page. Please be informed that i dont need to save additional pages. I just want to save the given URL in the correct format, so that the browser can be able to show in correct format later.
I want to build something like wget in linux. But wget cannot save a page very well. In that case whats ur suggestion to do this?
Do you suggest to go through parsing the base html page and then request other objects? Or there is any easy way to use other external library that can do this kind of parsing. I am also considering HTTrack.
Please guide me.
|
|
|
|
|
I've done this in C# for an internal site. Using the WebResponse object, you do a call to the URL and get a string back that's the html of the page. I ran on the assumption that it was xhtml compliant, loaded it into an xmldocument and parsed xml nodes that matched <A> tags to grab the links and saved off the original text in a plain html file while parsing the newly found links.
You have to check for duplicates and it's probably not all that elegant but it let us simulate a normal browser's experience.
Edit-
I know it's not linux but it was how we solved it. During our original search for something we did find blackwidow which does the same thing. I don't know if there's a non windows version but it might be worth a look too. It was free then but that was some time ago.
|
|
|
|
|
How complex are the pages you plan to download? If you want it to grab images that are called from javascript for things like mouseover effects then you are going to have to write a lot more code than if you are just grabbing plain HTML. You may be better off just using the System.Windows.Forms.WebBrowser class and using ShowSaveAsDialog. Otherwise you are going to have to almost write your own browser from scratch.
|
|
|
|
|
I am planning to write this in C++ or Java. Do you know any kind of library that is available as a wrapper? Can anyone give how much I shall be able to get from HTTrack which is a free offline browser utility.
I am worried about handling java scripts.
|
|
|
|
|
i m using jsw player in my website .i m unable to play my
.flv videos in flash player i have used .i have downloaded it from longtailvideo.com
and i have uploaded all files to my host. and paste the code in my page as below
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player-viral.swf','ply','470','320','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
// so.addVariable('file','http://content.longtailvideo.com/videos/flvplayer.flv');
so.addVariable('file','http://www.bigbonenews.net/jazmyn.flv');
so.write('mediaspace');
</script>
The problem is that it does not play my flv videos but it plays flv video of ther site if i remove
comment above code and make comment below code of comment then it plays ther video but it does not play
my video and the video is uploaded there i have given path .but it show file not found though file is there .flv
www.bigbonenews.net/videomedia.asp
is the link where u can check the player i have uploaded and does not play my flv files but play ther files
|
|
|
|
|
What did they say when you asked in the support forum on the longtailvideo website under the support link? Asking that question here is like going to a random orchard and asking why the apples at your grocery store aren't as ripe as you'd like.
|
|
|
|
|
Hiii....
How to synchronize my web calendar (application) to other online calendars such as Google calendar,outlook,Lotus notes,Blackberry Calendar etc....
Urgently need..........
Anyone have idea about this to calendar synchronization...Help me....
Thanks in advance....
Pradeep
|
|
|
|
|
Each one is going to be different. Without knowing how yours works there is no way to answer this question. You need to pick one of the other calendar apps, try to implement the sync and then ask questions when you have a specific problem. No one is going to hand you several weeks worth of coding on a forum.
|
|
|
|
|
Hi All,
I just spent an overwhelming morning trying to read up on how to write a good API to a website's service(s). For example, I want to write an API for my site's search feature that can be used within my site itself and can also be integrated with search functionality on my second website on another domain.
I understand it is a restful api and am trying to find a tutorial other than gen x design that will show me how to write a good internal API that can be extended to be external too.
Anyone faced this before or anticipates to face it in the future? Please help.
--MM
|
|
|
|
|
In this case i would generate an xml file which contains the search data. you can design the structure as you like. if the request is coming from the same domain the do the normal search display
if the request is from another server then use generate an xml as output which could be read by the second sites socket.
you can use the Request uri to get from which site the request is from. and according to the you can have an if condition.
if(REQUEST_URI==same server)query the database and display the result
else generateSearchXML(query)
in the generatesearchxml you set the content type as text/xml and echo the xml...
to create a request you do some thing like this...
"http://site1.com/search.php?q=searchstring" create a socket (fsockopen, file_get_contents) or a socket function according to the programming language
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
hi,
i'm in a trouble to download formview/Gridview as PDF. ie; i have a formview, which is filled with data including unicode & image. when i click a button, the formview should download as pdf. can any one help me to sortout this.
i tried iTextsharp, Pdfclown, etc.. But it will download only Enlgish, not unicode & images.
imp: i want to download the Entire Formview
its urgent my dear. please help me.
Thanks in advance.
|
|
|
|