Hello All:
I want to show some data in the form of groups in drop down list. Can we select a group instead of a group member in order to select full group in drop down list. If yes then how, if no then any other way or ant other control which can be used?
Thanks
Ashwani
I find it very convenient to set arbitary attributes like:
<a stackoverflowId="123">..
And in JavaScript:
var soId = $selectofA.attr('stackoverflowId'); //jQuery
Is it a good practice at all? I've never had a problem with this yet.
I noticed that PHP seems to return only values of checked checkboxes. I would like to see a list of checkboxes, not just values of checked checkboxes. Is there a way to detect variables of unchecked boxes?
I asked because I want to be able to update settings. For example, I have a few options that are already checked but if an user decides to uncheck an option, I need to know that unchecked value so I can update the option to be disabled.
I have a set of records in Microsoft Access that I am trying to send in an Email. The email feature works great. Except a warning message pops up every time a message is ready to send, and the user has to click "Allow" or "Deny" for every email sent. I looked up a workaround, and have been following the tutorial for it:
http://www.everythingaccess.com/tutorials.asp?ID=Outlook-Send-E-mail-Without-Security-Warning.
My problem is that when I put my message in the function it always returns false, and the message fails. Any help would be appreciated.
Dim sendMail As Boolean
Dim strMessage As String
strMessage = Some Message
sendMail = FnSafeSendEmail(![Email Id], "Subject", strMessage)
The entire "FnSafeSendEmail" function can be found in the link provided. These are the parameters though.
Public Function FnSendMailSafe(strTo As String, _
strCC As String, _
strBCC As String, _
strSubject As String, _
strMessageBody As String, _
Optional strAttachments As String) As Boolean
The error is thrown on this line of the function.
Dim blnSuccessful As Boolean
blnSuccessful = objOutlook.FnSendMailSafe(strTo, strCC, strBCC, _
strSubject, strMessageBody, _
strAttachmentPaths)
I have a form using the GET method.
If values are submitted with special characters, they appear in the URI as:
?value=fudge%20and%20stuff
How do I make it clean?
I don't want to use the header function because this is happening within a page in drupal.
I just made this demo extracting out what I'm trying to accomplish:
Autosize Main Content Area
I want the pink/yellow area to act according to these rules:
Minimum height is the size of its content (which is variable) IF content size is smaller than viewport size
Otherwise minimum height is such that it adjusts to fill the window.
Checking out the source to that demo, what am I missing? I feel like this is a pretty easy case that shouldn't require javascript.
Any ideas?
How would I do to check if a email actially exists?
Cant understand how sites do to send mails with a unique link that the users clicks to validate that he is the owner of email =/
Make a 2 new columns called activationkey and activated and store some random string, send an email with the activationkey, and update the users activated =1 that match that activation link
register.php?a=activate&key=9cdfb439c7876e703e307864c9167a15
Any better ideas?
I've got a bit of XML I want to display on my ASP.NET website as-is (for debugging purposes), and it would be nice if it was colored. This should be easy to achieve with the right kind of XmlWriter, but I don't have the time to make one myself. Is there an existing (free) component that can do this?
I have a Rails app handling authentication with the restful_authentication plugin.
I'm experiencing problems with the email activation feature and before I deal with that I would like to just allow my users to register without having to go through the email activation process.
How do I disable the email activation feature.
Rails 2.2.3
Restful_authentication
As any seasoned JavaScript developer knows, there are many (too many) ways to do the same thing. For example, say you have a text field as follows:
<form name="myForm">
<input type="text" name="foo" id="foo" />
There are many way to access this in JavaScript:
[1] document.forms[0].elements[0];
[2] document.myForm.foo;
[3] document.getElementById('foo');
[4] document.getElementById('myForm').foo;
... and so on ...
Methods [1] and [3] are well documented in the Mozilla Gecko documentation, but neither are ideal. [1] is just too general to be useful and [3] requires both an id and a name (assuming you will be posting the data to a server side language). Ideally, it would be best to have only an id attribute or a name attribute (having both is somewhat redundant, especially if the id isn't necessary for any css, and increases the likelihood of typos, etc).
[2] seems to be the most intuitive and it seems to be widely used, but I haven't seen it referenced in the Gecko documentation and I'm worried about both forwards compatibility and cross browser compatiblity (and of course I want to be as standards compliant as possible).
So what's best practice here? Can anyone point to something in the DOM documentation or W3C specification that could resolve this?
Note I am specifically interested in a non-library solution (jQuery/Prototype).
Is it possible to set a base url on a page with a relative value?
For example, I have two websites (website A and website B). For Website B it will be located at www.website-a.com/website-b. So could I set the BASE href as '/website-b/'?
Thanks
There is a simple way with php, a simple script or URL manipulation to build a URL for the gravatar image corresponding to an email?
Ex. http://gravatar.com/avatars/[email protected] and this return a jpeg or png image.
If there is no simple way like the example, what is the easiest way you know to resolve a url of the gravatar corresponding to an email?. Thanks
Hi All,
I am developing a web-app where I want to provide a download link to users - so they can download a zip file from my server.
Now, my requirement is that I want to execute some processing logic contained in a servlet before displaying the file dialog to the user for 'zip' files.
So If I write
<a href="abc.zip".......>
then it opens a file dialog asking the user to select the location where this file can be saved
But if I want a servlet's doGet method to do some preprocessing - say like building the zip file , then how can I first call the servlet and then open the file dialog.
Will the following snippet work?
<a href="MyHandlerServlet;abc.zip".......>
Thanks for your help !!
In searching the web I came across http://groupaware.mobi/iphone which
has a sample iphone navigation site.
Is there someplace I can find a similar thing for android? i.e.
sample web pages with css, sample templates, navigation etc.
If not, what suggestions would you have to offer to someone looking
to build a web page for android?
I have C# web application that I want it to send out an email on a certain date, such as if equipment isn't returned on the day it was due. Data is in MS SQL database.
I've got all the email code already done, and I'm just curious how do I trigger this email, say after the COB on that particular day?
Thanks,
Eric
I find it very convenient to set arbitary attributes like:
<a stackoverflowId="123">...</a>
And in JavaScript:
var soId = $selectofA.attr('stackoverflowId'); //jQuery
Is it a good practice at all? I've never had a problem with this yet.
I have a check box and a text box.
I have used struts tags and
Now i need to validate that if the check box is checked, i should gray out (disable) the text box. If it is unchecked the text box shold take phone numbers.
I did lik this, i called a java script on click of check box and did a innerHtml based on wheather checkbox ix checked or not.
var status_check=document.getElementById("line1Checked").checked;
if(status_check==true){
text="";
}
else{
text="";
}
alert(text);
document.getElementById("line1").innerHTML=text;
this works but if i use,
var status_check=document.getElementById("line1Checked").checked;
if(status_check==true){
";
}
else{
"; }
alert(text);
document.getElementById("line1").innerHTML=text;
It doesn work. All i know is struts tags execute at server. is there any possiblity to achieve this?
Please help me.
Hi,
I am creating a web based email client using c# asp.net.
What is confusing is that various email clients seem to add the original text in alot of different ways when replying by email.
What I was wondering is that, if there is some sort of standardized way, to disambiguate this process?
Thank you
-Theo
In print mode, I would like to render such a links:
<a href="#targetPage">link</a>
like this:
<a href="#targetPage">link (page 11)</a>
(suppose the target page is on 11. page in print preview).
It is possible to add page number using counters to the page footer with plain CSS, but could I use this in more "the way I want it" way?
The solution doesn't need to be cross-browser (FF/Chrome is enough), any CSS/Javascript tricks are allowed...
Hello!
Is it true that following code adds a XSS vulnerability to some JPS page?
<!-- <%=paramName%>=<%=request.getParameter(paramName)%><BR> -->
It looks like a "leftover debug" and definitely should be removed from the code, but how dangerous is it?
I need to extract information from an unstructured web page in Android. The information I want is embedded in a table that doesn't have an id.
<table>
<tr><td>Description</td><td></td><td>I want this field next to the description cell</td></tr>
</table>
Should I use
Pattern Matching?
Use BufferedReader to extract the information?
Or are there faster way to get that information?
I want to do the following:
aa: ________
bbbb: ________
ccc: ________
So I wrote:
<span>aa:</span><input type="text" /><br/>
<span>bbbb:</span><input type="text" /><br/>
<span>cc:</span><input type="text" />
And I get:
aa:________
bbbb:________
ccc:________
I know I can arrange it easy with table. How do I do it without tables with as few css as I can.
Thanks.
MVC.net 2 by default outputs validation messages like this:
<span id="UserName_validationMessage" class="field-validation-valid">A Validation message</span>
I would like it to do it like this:
<label id="UserName_validationMessage" class="field-validation-valid">A Validation message</label>
Is there a way to do it like the display and editor templates? Or is there another way to do it globally?
I want to pick up the values in a Div tag like which is some what like this
<html>
<head> </head>
<body>
<div id="page">
<html>
<head></head>
<body> Hellow World </body>
</html>
</div>
</body>
</html>
I want to select the content inside a div tag .
var msg = $("#page").html();
alert(msg);
this code is not working . i want that whole 2nd page along with the HTML tag is copied. How do i do that ?
I want the output to be the WHOLE thing INCLUDING the HTML tags