|
JimmyRopes wrote: There is no reason why you cannot use javascript, unless you wanted to hone your vbscripting skills for your ciriculim vitae. I never really thought about you as a VB anything type of guy but from your recient posts I take it you are learning it.
The *only* reason I'm using vbscript is because I was told not to convert it to .Net (and C#). In other words, I have no choice because the boss said to use vbscript.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hi,
I would like to know "how to write code in .net using the .net connector that will recive Idoc's from a SAP System?".
Can Biztalk do this without writing .net code ? I have used the "SAP Adapter for Biztalk" and have been able to download the IDoc schemas. Now that i have the schemas, i would also need the Idocs. Thus i will reframe my question again "How can i receive the Idocs from the SAP System to BizTalk?. "
Any pointers on this would be extremely useful.Please help me.
|
|
|
|
|
Am new but know a little more in web design.am a vb/sql programmer.am requested to Build a website, and i have to keep track of number of users accessing the site,time,location,browser type,ip, city,Country.i have to give these reports Every month and e-mail it to users monthly and be able to retrieve the reports daily and weekly
help how do i start. i have web design knowledge.
Vuyiswa
|
|
|
|
|
|
So you mean i should use, Templates?
Vuyiswa
|
|
|
|
|
No templates - just a small bit of javascript on each page, and you can then view reports online (some graphical) and have summaries emailed to you.
Read the info on the website!
F
|
|
|
|
|
Thank Man you are a Star
Vuyiswa
|
|
|
|
|
Two quick questions:
1. I really love Mozilla Firefox's javascript.options.strict mode (type about:config in addressbar). However it still doesn't pick up on certain things such as making it compulsory to have semi-colon as a statement terminator. I have hundreds of organically grown JavaScript files that are millions lines long. They are not written by me but by former employees and I've been handed the job of debugging & fixing their code. Does anyone know of a good Very strict JavaScript syntax verifier checker? What is the best JavaScript IDE out there?
2. What happens if I keep on writing:
var control = new Control();
var control = new Control();
var control = new Control();
500 times? Will this cause a memory leak? Or will the previous object be deleted since the reference is lost? Or is it handled differently in IE & FF?
|
|
|
|
|
there wont be any memory leak it is handled by DOM it will consider the last
var control = new Control();
|
|
|
|
|
Hello,
I'm new to the web development world and I'm hoping someone can point me in the right direction.
I have an asp.net website (I'm using a starterkit from www.asp.net). I want to apply a different stylesheet if the client is a mobile device. I'm using a plugin that gives me the client device's display settings. If the display is below a certain resolution I want to use mobile.css. Otherwise, I want to use default.css.
My understanding is that the style gets applied on the server when a request is made, and the resulting html is returned to the client. But I want the decission as to what style gets applied to be made by the client. How can I go about using javascript to change the stylesheet on the fly? Or, if I'm barking up the wrong tree, is there a way for me to program this functionality in the codebehind (I don't think there is, as the decission would have to be made on the client...)?
Thanks for your help! (I'm a total noob in this area!)
Ian
|
|
|
|
|
u can do it in ur client script by adding dynamic CSS and removing old one. And also donot cache the css in client side. use CacheControl=no-cache for that CSS probaly in IIS as a header.
|
|
|
|
|
Does the CSS need to be embedded in the HTML? Or can it just be linked to CSS on the server?
Ian
|
|
|
|
|
You can use the 'link[^]' tag to identify the CSS file, with the media attribute specifying what device the file should be used for.
|
|
|
|
|
Thanks! I'll give this a try.
Ian
|
|
|
|
|
ibowler wrote: I want to apply a different stylesheet if the client is a mobile device.
Put something like this in the <head> section of the page.
<style type="text/css" media="all">
@import "./styles/layout.css";
@import "./styles/presentation.css";
</style>
<style type="text/css" media="screen">
@import "./styles/screen.css";
</style>
<style type="text/css" media="print">
@import "./styles/print.css";
</style>
<style type="text/css" media="handheld">
@import "./styles/handheld.css";
</style>
CSS 2 Media Types[^]
The media=all would be a general layout (header, body, footer, navigation, etc.) and presentation (color, background, etc.) for any media and the specialized by device style sheets override the things specific to the particular device.
|
|
|
|
|
Hi all,
I have this big problem with hyperlinks I would appriciate any help please.
My web site has two datagrids on the same page. And one has a list of names of the users which are in a HyperlinkColumn. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called Name.
Now this is how it's supposed to work: When any user want to see data about a particular user it's a matter of selecting his name and the data Writen by the selected user should be the only ones to be shown.
I got some examples on Google but they all seem not to be working. When a user is selected the URL changes instead of the particular rows in the datagrid to be selected. For example the original url is "http://localhost/Dash_Board/DashBoard.aspx" and if I select user Claude the URL change into "http://localhost/Dash_Board/Claude" and get an error The page cannot be found. Why would this be happening?
My code looks like this:
HTML part:
<Columns>
<asp:HyperLinkColumn Target="_self" DataNavigateUrlField="TeamBilling" DataTextField="TeamBilling" HeaderText="Billing" DataTextFormatString="{0:c}"></asp:HyperLinkColumn>
</Columns>
and code behind:
private void dgbilling_SelectedIndexChanged(object sender, System.EventArgs e)
{
SqlCommand myCommand = new SqlCommand("select * from dbo.DashBoard where Name = @Billing",con);
SqlParameter myparam = new SqlParameter("@Billing",SqlDbType.Text);
myparam.Value="../Dash_Board/DashBoard.aspx?,Name{0}";
myCommand.Parameters.Add(myparam);
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds);
dgis.DataSource=ds;
dgis.EditItemIndex = -1;
dgis.DataBind();
}
dgis: this is the datagrid that where user inserts data.
dgbilling: this is the hyperlinkcolumn.
Thanks.
|
|
|
|
|
Replace hyper link with this and write the code on datagrid item command & find the name from command Argument
asp:LinkButton ID="lbtnName" Runat="server" Text="NAme" CommandArgument="Selected Name"/asp:LinkButto>"
-- modified at 9:02 Friday 11th May, 2007
|
|
|
|
|
Hi.
Is there a way to provide the same kind of tooltip that you get with a hyperlink (ie; a hand hovering over the text and a synopsis of the meaning of that text/statement; without defining a hyperlink. So, in short; a hyperlink-like-tooltip without the hyperlink?
Thanks in advance.
James
|
|
|
|
|
|
Thank you very much for the pointers..
James
|
|
|
|
|
hi
i have writen javascript to accept only numbers for a textbox
function validate()
{
var e = window.event.keyCode;
if(!((e>=96 && e<=105)||(e>=48 && e<=57)))
return false;
}
i m calling this function on keyup event of textbox but problem is that after returning false it write the char in textbox.
how can i do that....
Thanks
Dinesh Sharma
|
|
|
|
|
DineshSharmain wrote: keyup event
Try keydown / keypress instead - keydown will prob stop it if you return false...
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Thanks for your interest...
i have tried all the events but still it display the char. that i don't want.
please suggest me if any other way to accept only numeric. these textboxes are generating at run time.
Dinesh Sharma
|
|
|
|
|
It's all about the code that you use for the key press. It also matters if you're using FF or IE. I suggest googling, there are tons of examples on the web on how to do this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|