I have a hidden input field that will take the value of another on keyup and I'm trying to figure out how transform the value in the hidden field to lowercase and replace spaces with hyphens. So, if someone types "This Is A Sample" in the title input field, the identifier input field will be set to "this-is-a-sample".
<input type="te...
I've just been given the task of updating a web page in an enterprise java web app to include the date in the page title.
Currently the web page is a static html file - what do i need to do to get the page title to be the current date in YYYY/MM/DD format? Sorry I have no idea where to start!
...
Hi all,
I am trying query an xml file with dinamyc linq query. I have followed the scottGu's Blog
scottGu's Blog
But I have a problem to make the where clause. This is the scenario.
<Rates>
<Rate id="1" tax="20.5" sex="M" name="Jhon">
<Rate id="2" tax="2.5" sex="F" name="Aline">
</Rate>
The idea is to query the xml using a fil...
Hi,
I am in big need of help.
I am making dynamic query using Criteria:
ICriteria query = session.CreateCriteria(typeof(Employee));
if (searchOptions.FirstName != null)
{
query.Add(Expression.Eq("FirstName", searchOptions.FirstName));
}
if (!searchOptions.LastName != null)
{
query.Add(Expression.Eq("LastName", searchOptions.Last...
Need to know if there is a crawler/downloader that can crawl and download and entire website with at least a link depth of 4 pages. The site I am trying to download has java script hyperlinks that are rendered only by a browser and thus the crawler is unable crawl these hyperlinks unless the crawler itself renders them!!!
...
I have a datagrid that loads on page_load.
In this instance I can't load the datagrid in page_init as the results of the datagrid are determined by a checkbox and the checkbox would always be set to true during page_init thanks to the viewstate not being loaded.
I have an OnItemDataBound event on the datagrid that dynamically creates...
I have a wizard control that I am adding dynamic steps to that will not show the step on the first refresh. I have to click another button for it to show. My Dynamic creations are inside the onInit so I am not sure why this is happening. Please let me know what I am doing wrong.
protected override void OnInit(EventArgs e)
{
...
I have 3 radio buttons on my page. They are loaded by calling a jQuery function which returns the html ex:
<script type="text/javascript"><!--
onSelectChange(4);
-->
which call this function:
function onSelectChange(parm){
$.post("func.php", {function_name : "song"},
function(data){
$("#list...
I am trying to reference a variable dynamically in javascript
The variable I am trying to call is amtgc1# (where # varies from 1-7)
I am using a while statement to loop through, and the value of the counting variable in my while statement corresponds with the last digit of the variable I am trying to call.
For Example:
v...
I understand the order the events occur with page life cycle but it is not helping with my situation. I have a checkboxlist that is populated by a directory filled with forms. When I check a box next to the name of the form I would like it to dynamically create a wizard step and insert the form.
Order of events:
OnInit:
GatherForms() - ...
Hi, simple question mostly explained in the title. I need to load up a page, but just it's #container div. I can't, though.
<div id="top"><a href="index.php">Home</a> | <a href="operators.php">Operators</a></div>
<script type="text/javascript">
$('#top a').click(function(){
var pageURL=$(this).attr('href');
$('#container')....
I have 3 appenders in my config file for creating 3 different types of logs. I am using dynamic naming of file in each of the 3 appenders by setting the global context properties. In some cases, i need to set the log file name dynamically for just 1 appender.
When i set the file name for just 1 appender, it creates another file named "nu...
Is it possible to have a list with dynamic amount of items in app widget?
...
Hi,
I have a complex form that can exist in 30 odd different states depending upon a couple of selections made on the screen.
In the different states, the controls / section displayed are different. And the values in some of the controls can also vary.
I obviously don't want to hard-code these conditions in. Any frameworks / approache...
Dear All,
I am using two collection_select
Views
<%= collection_select(@table, "gm", @strs, "country", "country", {:prompt => "Select Country"}) %>
<%= submit_tag value="Proceed-->"%>
<%= collection_select(@table, "sp", @pops, "state", "state", {:prompt => "Select State"}) %>
<%= submit_tag value="Submit"%>
Controller
@strs = T...
HTML:
<ul>
<li><a href="#"><img src="image1.jpg" /></a></li>
<li><a href="#"><img src="image2.jpg" /></a></li>
</ul>
LI is (60px x 60px) but the images inside have different heights. I think they can be centered if the margin is set dynamically:
margin-top = height-of-li - height-of-img / 2
How do I do that with jQuery.
Ma...
I am embeding perl interpreter in my C code (what fun!).
I need to dynamically load perl extensions (an extension that extends perl, written in C). When I run a perl script (using my embeded perl interpreter) that needs to use that extension, it will work!
...
I have a live server which I want to occasionally use for testing purposes. I only have access to FTP and some basic administration tools there.
Reading the documentation for dl() gives me hope I can load xDebug dynamically even though I can't add it to the loaded extension list. I have little idea how though.
Question: How to obtain ...
$ chmod +x libsomelibrary.so
$ ./libsomelibrary.so
Segmentation fault
$ gcc -O2 http://vi-server.org/vi/bin/rundll.c -ldl -o rundll
$ ./rundll ./libsomelibrary.so main
(application starts normally)
Why can't I just start libsomelibrary.so if it has usable entry point?
rundll.c is trivial:
void* d = dlopen(argv[1], RTLD_LAZY);
void* ...
HTML below is generated via ajax call into "purchase_content". I want to apply tooltip to each link in each row, can be up to 100 rows.
This is code at moment but with no success. If I rollover each link twice tooltip appears but wont ever appear again. Any thoughts on addressing link on each row?
<div id="purchase_content">
<div id...