|
Try simplifying your WHERE clause to:
where ([lastName] like '%' + @lname + '%' Or @lname Is Null)
And ([firstName] like '%' + @fname + '%' Or @fname Is Null)
And ([middleName] like '%' + @mname + '%' Or @mname Is Null)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello i made a module where i parse a bunch of names from the DB and i print em in a dropdownlist in the backend. Then i select some names and that names will be posted in the frontend.
I wanted to add an extra element (textbox) where it will print the count of the names i selected.
I wrote the code but i get a NULL value text box and no errors at consol.log . As the script is running at jsfiddle i suspect i have an error at including the library.
Im searching 2 days now with no luck.Could a joomla developer guru enlight me on what im doing wrong ?
my jquery script
jQuery(document).ready(function($){
var count =$("#jform_params_foreignmanuf :selected").length;
$("#jform_params_manucounter").val(count);
});
Multiselect Dropdown list:
{
protected $type = 'Manulist';
protected function getOptions()
{
$db= JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__virtuemart_manufacturers_en_gb');
$db->setQuery($query);
$items = $db->loadObjectList();
$options = array();
if ($items)
{
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->virtuemart_manufacturer_id , $item->mf_name,$item->slug);
}
}
$options = array_merge(parent::getOptions(), $options);
JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');
}
}
Textbox Counter code:
<?php
defined('JPATH_PLATFORM') or die;
JFormHelper::loadFieldClass('Text');
class JFormFieldManulist extends JFormFieldText
{
protected $type = 'Countermanu';
protected function getOptions()
{
$doc = JDocument::getDocument();
$js = '
jQuery(document).ready(function($){
var count = $("#jform_params_foreignmanuf :selected").length;
$("#jform_params_manucounter").val(count);
});
';
$doc->addScriptDeclaration($js);
JHtml::_('script', JUri::root() . 'modules/mod_manufacturers/js/js.js');
}
}
|
|
|
|
|
Hi, suppose I have a Div on a page and inside of this Div I have a Span, a List, and another Div.
If the page is displayed in an Iframe and if none of the elements has an ID, how would I go about adding a temporary ID when they are clicked using jQuery?
Each time a new element is clicked if it doesn't have an ID it will be assigned the same temporary ID given to the element that was clicked last. So the ID has to be removed from the previous element and then given to the new element.
Obviously I have to first call the load method to load the Iframe then inside the load method I will get the contents of the Iframe and find the body element when the page is clicked. Thus far the code below is what I have inside the load method but I need help in finishing it.
$(this).contents().find("body").on('click', function (e) {
var ClickedElement = $(e.target);
}
Thanks in advance for your help.
modified 4-Dec-14 2:34am.
|
|
|
|
|
|
|
I am trying to learn how design a better web applications,
from the design and architecture, to the bits and bytes of the code.
i am currently using jersey servlet container, for my REST service.
and i'm using a node.js server as a "front controller" that communicates with my REST API and does all the view rendering.
I am aware that some of the things i did are wrong or just ugly, and i'm trying to learn how to do things right.
so i was thinking of learning spring mvc, but i find it overwhelming.
so my question is: is there a way to gradually integrate spring features to my web application? so that instead of being overwhelmed by all of springs component, i can tackle each component seperatly.
Also, could you recommand tutorials\books about web application design? most of the meterial i found was orianted towards specific technologies, rather then generally how to design a web aplication and how to get different technologies to work together.
|
|
|
|
|
Hi all, I created a folder called Everyone in my project folder and moved some html pages from the project folder to this new folder. I left the css, images, and scripts folders in their original locations.
Then I modified the pages that were moved to the Everyone folder to use relative paths to access the styles, images and scripts. None of the pages in the Everyone folder is displaying correctly.
The following is my folder structure
Project Folder
|
-----------------------------------
| | | |
Everyone CSS images scripts
I have used the following relative paths on a page in the Everyone folder to get access to a css file and an image from the images folder but they are not working.
<link rel="stylesheet" href="/css/mediaCSS.css" type="text/css" media="screen" />
<img src = "/images/myimage.jpg" />
Please point out why they're not working, thanks in advance
|
|
|
|
|
Everyone is at a directory below your project root where some of your html pages live.
So is the other directories.
To access a directory below your project root from another directory that is below your project root then you first must move upwards to the project root, in a similar way that you navigate the folder structure in a dos prompt.
So, to navigate to the CSS directory from the Everyone directory use ../css/file-name.css the same would be true for the images and scripts directories. (note the double dot (.. ) to move up a single level in the directory structure)
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi Richard, thanks for responding. I have already tried what you've suggested even before posting this question and it did not work. I tried it again just to be certain and sure enough it did not work.
The project folder I mentioned above is my project folder in Visual Studio. Basically I am using form authentication and I wanted to allow everyone to have access to certain files. So I created the Everyone folder in my project folder and configured the Web.Config file for this new folder so that all the files put in it can be accessed by everyone.
modified 25-Nov-14 1:25am.
|
|
|
|
|
I solved this by adding the location element to the webconfig and allowed everyone to access my file
|
|
|
|
|
i just started a class on web development and i think i like what i see.. my problem is that i just cant picture the perfect way of picking colours for design...
|
|
|
|
|
|
This task would generally be undertaken by a graphic designer. But if you don't have that skill then the best way is to look at lots of different websites and see which colours give a pleasing look and which ones just look wrong. You can also look at Microsoft recommendations[^].
|
|
|
|
|
Do not pick colors - pick a designer...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
תפסיק לספר לה' כמה הצרות שלך גדולות, תספר לצרות שלך כמה ה' גדול!
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
If you're interested in the graphic design portion, I would suggest taking some Graphic design classes; even the analog design classes can give you a good grasp on the use of complementary palettes and white space.
Some schools even offer UX courses, but that's often in the CIS or even Art catalog rather than the CS one.
Or, as everyone else suggests, if you prefer to be closer to the metal you should pass that work on to someone else.
|
|
|
|
|
hey.. What's up??
I am developer and work on fiverr & oDesk.. If you have any problem in your website or you need creative website then you can feel free to contact me..
click here for visit my profile skype: shobuj_bd2020
|
|
|
|
|
There is NO perfect way to pick colors. My advice is to make friends with some artists, join some art forums like Behance or deviant art and make use of some of these talented people, because color sense is something you have, not something you can get.
I usually ask my wife who is a Virgo and she can look at a strip of cloth or sample, go shopping and come back with an exact match. It's something they are born to do naturally.
|
|
|
|
|
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" precondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"> to the system.webServer/handlers section for Internet Information Services 7 or later.
I am getting the above error while I try to run RDLC report.
The following things I have added to the solution:
1. ReportViewer control on the .aspx page.
<rsweb:ReportViewer ID="ReportViewer2" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
<LocalReport ReportPath="reports\Report1.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="SqlDataSource1" Name="DataSet1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
2. Registered assembly on .aspx page
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
3. Added reference Microsoft.ReportViewer.WebForms to the project
4. In web.config tags added are:
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
</buildProviders>
</compilation>
Kindly provide the solution to resolve this error of RDLC report.
|
|
|
|
|
Why cant you do it yourself. Its telling you clearly what to do.
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file.
Add to the system.web/httpHandlers section of the web.config file, or add to the system.webServer/handlers section for Internet Information Services 7 or later.
Regards,
CodingK
|
|
|
|
|
add below line in system.web in web.config file
<httphandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb=" * " type="Microsoft.Reporting.WebForms.HttpHandler,
Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a">
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
="" validate="false">
|
|
|
|
|
|
Never heard of picking dates in MVC 5 - Try Egypt they are the biggest producers.
|
|
|
|
|
I'd say you just made me hungry by mentioning those dates, but I ate a doughnut.
|
|
|
|
|
So you need a doughnut picker then.
|
|
|
|
|
Help is not found here,
We all just come here to play.
QA will reply.
--- The Lounge Haku
|
|
|
|